luozha
luozha
全部文章
分类
题解(21)
归档
标签
去牛客网
登录
/
注册
luozha的博客
命数如织,当为磐石
全部文章
(共21篇)
题解 | #24点运算#
let str; let flag; let text = ""; const d = { 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, J: 11, Q: 12, K: 13, A: 1, 2: 2 } while ((str = readli...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-06-06
0
377
题解 | #Redraiment的走法#
while (readline()) { let arr = readline().split(" ").map(Number); let len = arr.length; // dp[i] 表示以第 i 个桩为结尾,最多走多少步,初始是 1 步(默认这个桩是跟它之前相比最矮的) ...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-06-06
6
469
题解 | #迷宫问题#
let maze; let line; let n, m; while ((line = readline())) { let str; [n, m] = line.split(" ").map(Number); maze = []; while ((str = readline()...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-06-06
3
351
题解 | #合法IP#
let str; while ((str = readline())) { let rr = /^((0)|(1\d{2})|(2[0-4]\d)|(25[0-5])|([1-9]\d?))$/; let arr = str.split('.') print(arr.length ===...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-06-05
0
266
题解 | #输出单向链表中倒数第k个结点#
快慢指针 class Node { constructor(val, next) { this.val = val; this.next = next; } } function create(values) { const head = new Node(values...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-06-05
6
641
题解 | #坐标移动#
let str; while ((str = readline())) { str = str.split(";"); let arr = []; for (let item of str) { if (/^[ADWS][0-9]{1,2}$/.test(item)) { ...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-06-05
0
278
题解 | #数据分类处理#
let firStr; while ((firStr = readline())) { let secStr = readline(); let I = firStr.split(" ").splice(1); let R = secStr.split(" ").splice(1); ...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-06-04
0
328
题解 | #参数解析#
let str; while ((str = readline())) { let arr; arr = []; let flag = false; let word = ""; for (let i = 0; i < str.length; i++) { if (...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-05-30
6
397
题解 | #称砝码#
while (readline()) { let weight = readline().split(" ").map(Number); let num = readline().split(" ").map(Number); let res = new Set([0]);// 用数组会...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-05-29
9
578
题解 | #密码强度等级#
let str; const out = { 90: "VERY_SECURE", 80: "SECURE", 70: "VERY_STRONG", 60: "STRONG", 50: "AVERAGE", 25: "WEAK", 0: "VERY_WEAK", }; ...
Javascript V8
Javascript Node
HTML/CSS/JavaScript
2022-05-29
1
342
首页
上一页
1
2
3
下一页
末页