牛客254520193号
牛客254520193号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客254520193号的博客
全部文章
(共54篇)
题解 | 多组数据a+b III
''' 超时 s=[] for i in range(1000): a,b=map(int,input().split()) s.append(a) s.append(b) if a==0 and b==0: break for i in range(...
2025-11-21
0
14
题解 | 判断闰年
n=int(input()) if n%400==0: print('yes') elif n%4==0 and n%100!=0: print('yes') else: print('no') ''' if (n%4==0 and n%100!=0 or n%400==0)...
2025-11-21
0
11
题解 | 牛牛是否被叫家长
a=list(map(int,input().split())) if 60*len(a)<=sum(a): print('NO') else: print('YES')
2025-11-21
0
11
题解 | 最大最小值
a,b,c=map(int,input().split()) print(f'The maximum number is : {max(a,b,c)}') print(f'The minimum number is : {min(a,b,c)}') #也可以用\n换行
2025-11-21
0
15
题解 | 牛妹数
n=int(input()) if n>50 and n%2==0: print('yes') else: print('no') ''' print("yes" if (lambda a:a > 50 and a%2 ==0)(*map(int, ...
2025-11-21
0
16
题解 | 求四位数各个数位之和
''' n=list(map(int,input().split())) a=sum(n) print(a) 注意输入的是1234不是1 2 3 4, ''' n=list(map(int,input())) print(sum(n))
2025-11-21
0
14
题解 | 比大小
a,b=map(int,input().split()) if a>b: print('>') elif a==b: print('=') else: print('<') ''' print((lambda a,b:{1: ">"...
2025-11-20
0
16
题解 | 比大小
a,b=map(int,input().split()) if a>b: print('>') elif a==b: print('=') else: print('<')
2025-11-20
0
18
题解 | 时间转换
seconds=int(input()) hours=seconds//(60*60) minutes=(seconds-hours*3600)//60 miao=seconds%3600%60 print(hours,minutes,miao,sep=' ') ''' from datetime ...
2025-11-20
0
18
题解 | 小乐乐求和
''' 超时!!! n=int(input()) s=0 for i in range(1,(n+1)): s+=i print(s) ''' ''' 超时!!! N = int(input()) result = sum(range(1, N+1)) print(result) ''' #...
2025-11-20
0
16
首页
上一页
1
2
3
4
5
6
下一页
末页