GPT1_0
GPT1_0
全部文章
分类
归档
标签
去牛客网
登录
/
注册
GPT1_0的博客
全部文章
(共25篇)
题解 | 牛牛学数列6
x= int(input()) def function_A(x): A = [0]*(x+1) if x >= 1: A[1] = 0 if x >= 2: A[2] = 1 if x >= 3: A...
2025-11-06
0
20
题解 | 数颜色
word = list(input()) r=0 g=0 b=0 for letter in word: if letter == 'R': r+=1 elif letter == 'G': g+=1 elif letter == 'B': ...
2025-11-04
0
20
题解 | 小红的正整数构造
l,r,x = map(int,input().split()) for v in range(l,r+1): if v%x != 0: m=-1 else: m = v break print(m)
2025-11-04
0
20
题解 | 田忌赛马
v1,v2,v3 = map(int,input().split()) a1,a2,a3 = map(int,input().split()) V = sorted([v1,v2,v3]) A = sorted([a1,a2,a3]) if A[2]> V[1] and A[1]>V[0...
2025-11-04
0
23
题解 | 小红喜欢1
A = list(input().split(" ")) for i in range(len(A)): if A[i]!='0': break else: i+=1 print(i+1)
2025-11-04
0
18
首页
上一页
1
2
3
下一页
末页