CARLJOSEPHLEE
CARLJOSEPHLEE
全部文章
分类
题解(26)
归档
标签
去牛客网
登录
/
注册
CARLJOSEPHLEE的博客
全部文章
(共216篇)
题解 | 坐标移动
from sys import stdin input = lambda: stdin.readline().strip() x,y = 0,0 l = input().split(";") def f(q): global x,y try: ...
2025-03-01
0
67
题解 | 高精度整数加法
from decimal import * setcontext(Context(prec=100000,Emax=100000,Emin=-100)) a,b = Decimal(input()),Decimal(input()) print(a+b)
2025-03-01
0
43
题解 | 求int型正整数在内存中存储时1的个数
cnt = 0 n = int(input()) while n != 0: cnt += n%2 n //= 2 print(cnt)
2025-03-01
0
55
题解 | 字符串排序
n = int(input()) l = [input() for _ in range(n)] print("\n".join(sorted(l)))
2025-03-01
0
52
题解 | 句子逆序
print(" ".join(input().split()[::-1]))
2025-03-01
0
47
题解 | 字符串反转
print(input()[::-1])
2025-03-01
0
57
题解 | 数字颠倒
print(input()[::-1])
2025-03-01
0
41
题解 | 字符个数统计
print(len(set(input())))
2025-03-01
0
46
题解 | 提取不重复的整数
l = [] a = input()[::-1] for i in a: if i not in l: l.append(i) print("".join(l))
2025-03-01
1
43
题解 | 合并表记录
from collections import defaultdict dict1 = defaultdict(int) for _ in range(int(input())): a,b = map(int,input().split()) dict1[a] += b for i ...
2025-03-01
1
55
首页
上一页
13
14
15
16
17
18
19
20
21
22
下一页
末页