chong_0428
chong_0428
全部文章
分类
归档
标签
去牛客网
登录
/
注册
chong_0428的博客
全部文章
(共132篇)
题解 | 查找
def find(n, s, a, t): for i in t: tag = 0 for j in s: if j == i: print('YES') tag = 1...
2025-02-27
0
27
题解 | 数字之和
def sum_q(a): res = [] a = a ** 2 while a != 0: res.append(a%10) a = a // 10 return sum(res) def sum_s(a): res = ...
2025-02-26
0
27
题解 | 三角形的边
while True: try: a = list(map(int, input().split())) if a[1] == 0 or a[0] == 0 and a[2] == 0: break min_a = m...
2025-02-26
0
29
题解 | 字符串的反码
def revword(s): res = [] for i in range(len(s)): if ord('A') <= ord(s[i]) and ord(s[i]) <= ord('Z'): a = ord(s[i])...
2025-02-26
0
36
题解 | 计算两个矩阵的乘积
a = [] b = [] for i in range(2): a1 = list(map(int, input().split())) a.append(a1) for i in range(3): b1 = list(map(int, input().split()))...
2025-02-26
0
30
题解 | 百万富翁问题
a = 30 * 10 s = 0 for i in range(30): s += 2 ** i print(a,s)
2025-02-26
0
35
题解 | 字符串链接
while True: try: s= input() s = list(s) for i in range(len(s)): if s[i] == ' ': break ...
2025-02-26
0
26
题解 | 最大公约数
a, b = list(map(int, input().split())) while b: a, b = b, a%b print(a)
2025-02-25
0
29
题解 | 找x
n = int(input()) s = list(map(int, input().split())) a = int(input()) for i in range(len(s)): if s[i] == a: break if i == len(s) - 1: ...
2025-02-25
0
24
题解 | a+b
while True: try: a, b = list(map(int, input().split())) print(a+b) except: break
2025-02-25
0
24
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页