苦闷的芒果在看数据
苦闷的芒果在看数据
全部文章
分类
归档
标签
去牛客网
登录
/
注册
苦闷的芒果在看数据的博客
全部文章
(共27篇)
题解 | 配置文件恢复
import sys def isok(s,t): if len(s) > len(t): return False for i in range(len(s)): if s[i] != t[i]: return Fals...
2025-11-21
0
14
题解 | MP3光标位置
import sys while True: try: n = int(input()) s = input() pos = 0 lst = list(range(1,n+1)) if n <= 4: ...
2025-11-20
0
18
题解 | 分数线划定
import sys n,m = map(int,input().split()) t = int(m * 1.5) data = [] for _ in range(n): data.append(list(map(int,input().split()))) data.sort(key=...
2025-11-19
0
21
题解 | 坐标移动
comd = input().split(';') x,y = (0,0) for c in comd: if 1 < len(c) < 4 and c[0] in ['W','A','S','D'] and c[1:].isdigit() and 0 < int(c[1:...
2025-07-19
0
40
题解 | 提取不重复的整数
n = list(input()) string = '' for i in reversed(range(len(n))): if n[i] not in string: string += n[i] print(int(string))
2025-07-13
0
42
题解 | 取近似值
n = float(input()) if n % 0.5: print(round(n)) else: print(int(n + 0.5))
2025-07-12
0
42
题解 | 字符串最后一个单词的长度
import sys for line in sys.stdin: a = line.split() print(len(a[-1]))
2025-07-01
0
27
首页
上一页
1
2
3
下一页
末页