CARLJOSEPHLEE
CARLJOSEPHLEE
全部文章
分类
题解(26)
归档
标签
去牛客网
登录
/
注册
CARLJOSEPHLEE的博客
全部文章
(共216篇)
题解 | 构造C的歪
a,b = map(int,input().split()) print(2*b-a)
2025-03-05
0
62
题解 | 单词倒排
l = [] for i in range(128): if i not in range(65,65+27) and i not in range(97,97+27): l.append(chr(i)) a = input() l2 = [] for i in a: ...
2025-03-05
0
58
题解 | 简单密码
a = input() def f(x): l = [] for i in x: if i in list("abc"): l.append("2") elif i in list(&qu...
2025-03-05
0
70
题解 | 密码验证合格程序
from sys import stdin input1 = stdin.read().split() def f(x): if len(x) < 8: return False c1,c2,c3,c4 = False,False,False,False ...
2025-03-05
1
61
题解 | 购物单
from collections import defaultdict n,m = map(int,input().split()) n//=10 value = [] weight = [] l0 = [] dict1 = defaultdict(list) for i in range(m): ...
2025-03-05
0
51
题解 | 购物单
from collections import defaultdict n,m = map(int,input().split()) value = [] weight = [] l0 = [] dict1 = defaultdict(list) for i in range(m): v,w...
2025-03-05
0
60
题解 | 表示数字
a = input() l = [] zhuangtai = False for i in a: if i.isnumeric() and not zhuangtai: l.append("*") zhuangtai = True ...
2025-03-04
0
57
题解 | 翻之
import sys from collections import Counter n, m = map(int, sys.stdin.readline().split()) matrix = [sys.stdin.readline().strip() for _ in range(n)] co...
2025-03-04
2
78
题解 | 24点游戏算法
l1 = [int(i) for i in input().split()] zhuangtai = False def dfs(l): global zhuangtai if len(l) == 1: if abs(l[0] - 24)<0.000001: ...
2025-03-04
0
64
题解 | 计算日期到天数转换
l = [31,31,30,31,30,31,31,30,31,30,31] def isrun(x): if x%4==0 and x%100 != 0: return True if x %400 == 0: return True a,b,c =...
2025-03-04
0
79
首页
上一页
12
13
14
15
16
17
18
19
20
21
下一页
末页