Skip to content

Commit 76039d9

Browse files
committed
2 parents 74f713d + fbb99ff commit 76039d9

29 files changed

Lines changed: 836 additions & 6 deletions

leetcode/problems/.lcpr_data/bricks.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@
120120
1781712000
121121
]
122122
},
123+
"2550": {
124+
"submit_time": [
125+
1776865790,
126+
1776865908
127+
],
128+
"type": 4,
129+
"review_day": [
130+
1776873600,
131+
1777132800,
132+
1777392000,
133+
1777996800,
134+
1779206400,
135+
1781971200
123136
"100290": {
124137
"submit_time": [
125138
1776767412
@@ -135,4 +148,4 @@
135148
]
136149
}
137150
}
138-
}
151+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* @Author: tkzzzzzz6
3+
* @Date: 2026-04-22 21:37:27
4+
* @LastEditors: tkzzzzzz6
5+
* @LastEditTime: 2026-04-22 21:44:51
6+
*/
7+
/*
8+
* @lc app=leetcode.cn id=2452 lang=cpp
9+
* @lcpr version=30204
10+
*
11+
* [2452] 距离字典两次编辑以内的单词
12+
*/
13+
14+
15+
// @lcpr-template-start
16+
using namespace std;
17+
#include <algorithm>
18+
#include <array>
19+
#include <bitset>
20+
#include <climits>
21+
#include <deque>
22+
#include <functional>
23+
#include <iostream>
24+
#include <list>
25+
#include <queue>
26+
#include <stack>
27+
#include <tuple>
28+
#include <unordered_map>
29+
#include <unordered_set>
30+
#include <utility>
31+
#include <vector>
32+
// @lcpr-template-end
33+
// @lc code=start
34+
class Solution {
35+
public:
36+
vector<string> twoEditWords(vector<string>& queries, vector<string>& dictionary) {
37+
38+
}
39+
};
40+
// @lc code=end
41+
42+
43+
44+
/*
45+
// @lcpr case=start
46+
// ["word","note","ants","wood"]\n["wood","joke","moat"]\n
47+
// @lcpr case=end
48+
49+
// @lcpr case=start
50+
// ["yes"]\n["not"]\n
51+
// @lcpr case=end
52+
53+
*/
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# @lc app=leetcode.cn id=2452 lang=python3
3+
# @lcpr version=30204
4+
#
5+
# [2452] 距离字典两次编辑以内的单词
6+
#
7+
8+
9+
# @lcpr-template-start
10+
11+
# @lcpr-template-end
12+
# @lc code=start
13+
class Solution:
14+
def twoEditWords(self, queries: List[str], dictionary: List[str]) -> List[str]:
15+
ans = []
16+
for q in queries:
17+
for s in dictionary:
18+
if sum(x != y for x,y in zip(q,s)) <= 2:
19+
ans.append(q)
20+
break
21+
22+
return ans
23+
24+
# @lc code=end
25+
26+
27+
28+
#
29+
# @lcpr case=start
30+
# ["word","note","ants","wood"]\n["wood","joke","moat"]\n
31+
# @lcpr case=end
32+
33+
# @lcpr case=start
34+
# ["yes"]\n["not"]\n
35+
# @lcpr case=end
36+
37+
#

leetcode/problems/71.simplify-path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Author: tkzzzzzz6
33
* @Date: 2026-04-20 15:13:56
44
* @LastEditors: tkzzzzzz6
5-
* @LastEditTime: 2026-04-20 15:48:48
5+
* @LastEditTime: 2026-04-21 23:00:00
66
*/
77
/*
88
* @lc app=leetcode.cn id=71 lang=cpp
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# @nc app=nowcoder id=d4ec5f9ac2aa409385e3b91854dda100 topic=314 question=2365044 lang=Python3
2+
# 2026-04-22 21:58:41
3+
# https://www.nowcoder.com/practice/d4ec5f9ac2aa409385e3b91854dda100?tpId=314&tqId=2365044
4+
# [NP1] Hello World!
5+
6+
# @nc code=start
7+
8+
import sys
9+
10+
print("Hello World!")
11+
12+
13+
14+
15+
# @nc code=end
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
'''
2+
Author: tkzzzzzz6
3+
Date: 2026-04-23 07:51:35
4+
LastEditors: tkzzzzzz6
5+
LastEditTime: 2026-04-23 07:51:42
6+
'''
7+
# @nc app=nowcoder id=ff823846af304a9a8cbbdfe2c9e8874c topic=314 question=10055850 lang=Python3
8+
# 2026-04-23 07:51:35
9+
# https://www.nowcoder.com/practice/ff823846af304a9a8cbbdfe2c9e8874c?tpId=314&tqId=10055850
10+
# [NP10] 牛牛最好的朋友们
11+
12+
# @nc code=start
13+
14+
import sys, math
15+
from collections import deque, defaultdict, Counter
16+
import heapq, bisect
17+
input = lambda: sys.stdin.readline().rstrip()
18+
19+
def solve():
20+
name1 = input()
21+
name2 = input()
22+
print(name1 + name2)
23+
24+
if __name__ == "__main__":
25+
sys.setrecursionlimit(10**7)
26+
t = 1
27+
# t = int(input())
28+
for _ in range(t):
29+
solve()
30+
31+
32+
# @nc code=end
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
'''
2+
Author: tkzzzzzz6
3+
Date: 2026-04-23 07:52:15
4+
LastEditors: tkzzzzzz6
5+
LastEditTime: 2026-04-23 07:52:24
6+
'''
7+
# @nc app=nowcoder id=3236759a8bcd43819cfd2b7eb4a9eebb topic=314 question=10055851 lang=Python3
8+
# 2026-04-23 07:52:15
9+
# https://www.nowcoder.com/practice/3236759a8bcd43819cfd2b7eb4a9eebb?tpId=314&tqId=10055851
10+
# [NP11] 单词的长度
11+
12+
# @nc code=start
13+
14+
import sys, math
15+
from collections import deque, defaultdict, Counter
16+
import heapq, bisect
17+
input = lambda: sys.stdin.readline().rstrip()
18+
19+
def solve():
20+
word = input()
21+
print(len(word))
22+
23+
if __name__ == "__main__":
24+
sys.setrecursionlimit(10**7)
25+
t = 1
26+
# t = int(input())
27+
for _ in range(t):
28+
solve()
29+
30+
31+
# @nc code=end
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
'''
2+
Author: tkzzzzzz6
3+
Date: 2026-04-23 07:53:36
4+
LastEditors: tkzzzzzz6
5+
LastEditTime: 2026-04-23 07:53:49
6+
'''
7+
# @nc app=nowcoder id=3bd78a6de34a447fa49571a03f164fd3 topic=314 question=2365106 lang=Python3
8+
# 2026-04-23 07:53:36
9+
# https://www.nowcoder.com/practice/3bd78a6de34a447fa49571a03f164fd3?tpId=314&tqId=2365106
10+
# [NP12] 格式化输出(二)
11+
12+
# @nc code=start
13+
14+
import sys, math
15+
from collections import deque, defaultdict, Counter
16+
import heapq, bisect
17+
input = lambda: sys.stdin.readline().rstrip()
18+
19+
def solve():
20+
name = input()
21+
22+
print(name.lower())
23+
print(name.upper())
24+
# print(name.capitalize())
25+
print(name.title())
26+
if __name__ == "__main__":
27+
sys.setrecursionlimit(10**7)
28+
t = 1
29+
# t = int(input())
30+
for _ in range(t):
31+
solve()
32+
33+
34+
# @nc code=end
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
'''
2+
Author: tkzzzzzz6
3+
Date: 2026-04-23 07:58:34
4+
LastEditors: tkzzzzzz6
5+
LastEditTime: 2026-04-23 07:58:45
6+
'''
7+
# @nc app=nowcoder id=cc6cb2b4aac446da902356fec043f5c1 topic=314 question=2365278 lang=Python3
8+
# 2026-04-23 07:58:34
9+
# https://www.nowcoder.com/practice/cc6cb2b4aac446da902356fec043f5c1?tpId=314&tqId=2365278
10+
# [NP13] 格式化输出(三)
11+
12+
# @nc code=start
13+
14+
import sys, math
15+
from collections import deque, defaultdict, Counter
16+
import heapq, bisect
17+
18+
def solve():
19+
name = input().lstrip().rstrip()
20+
print(name)
21+
22+
if __name__ == "__main__":
23+
sys.setrecursionlimit(10**7)
24+
t = 1
25+
# t = int(input())
26+
for _ in range(t):
27+
solve()
28+
29+
30+
# @nc code=end
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
'''
2+
Author: tkzzzzzz6
3+
Date: 2026-04-23 07:59:22
4+
LastEditors: tkzzzzzz6
5+
LastEditTime: 2026-04-23 07:59:28
6+
'''
7+
# @nc app=nowcoder id=9baca399143e418cb471159d3b96743e topic=314 question=10055852 lang=Python3
8+
# 2026-04-23 07:59:22
9+
# https://www.nowcoder.com/practice/9baca399143e418cb471159d3b96743e?tpId=314&tqId=10055852
10+
# [NP14] 不用循环语句的重复输出
11+
12+
# @nc code=start
13+
14+
import sys, math
15+
from collections import deque, defaultdict, Counter
16+
import heapq, bisect
17+
input = lambda: sys.stdin.readline().rstrip()
18+
19+
def solve():
20+
name = input()
21+
for _ in range(100):
22+
print(name,end='')
23+
24+
if __name__ == "__main__":
25+
sys.setrecursionlimit(10**7)
26+
t = 1
27+
# t = int(input())
28+
for _ in range(t):
29+
solve()
30+
31+
32+
# @nc code=end

0 commit comments

Comments
 (0)