美子201907141638983
美子201907141638983
全部文章
题解
归档
标签
去牛客网
登录
/
注册
美子201907141638983的博客
全部文章
/ 题解
(共46篇)
题解 | #求int型正整数在内存中存储时1的个数#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin,...
Javascript Node
2022-05-08
6
275
题解 | #句子逆序#
双指针 const readline = require('readline'); const rl = readline.createInterface({ input:process....
Javascript Node
2022-05-08
0
338
题解 | #合并表记录#
利用对象,每次输入的时候先查一下有没有,如果没有就直接塞进去,如果已经存在该键值对就把值取出来相加;注意,键值对的value要用string类型,防止0的干扰 const readline = require('readline'); const rl&nb...
Javascript Node
2022-05-08
6
434
题解 | #取近似值#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin,...
Javascript Node
2022-05-08
0
255
题解 | #质数因子#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin,...
Javascript Node
2022-05-08
11
855
题解 | #字符串分隔#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin,...
Javascript Node
2022-05-08
28
289
题解 | #计算某字符出现次数#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin, output:process.stdout });...
Javascript Node
2022-05-08
1
364
题解 | #字符串最后一个单词的长度#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin,...
Javascript Node
2022-05-08
0
240
题解 | #字符串字符匹配#
const judge = (s) =>{ let a = s[0].split(''); let b =&...
Javascript Node
2022-05-08
0
317
题解 | #输入n个整数,输出其中最小的k个#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin,...
Javascript Node
2022-05-08
5
322
首页
上一页
1
2
3
4
5
下一页
末页