positive_ll
positive_ll
全部文章
分类
归档
标签
去牛客网
登录
/
注册
positive_ll的博客
全部文章
(共28篇)
题解 | 素数判断
import math T=int(input()) for i in range(T): n=int(input()) if n<=1: print('No') else: flag=True for j in rang...
2025-06-18
0
14
题解 | 多组数据a+b III
a,b=list(map(int,input().split())) while(a!=0 or b!=0): print(a+b) a,b=list(map(int,input().split()))
2025-06-17
0
9
题解 | 多组输入a+b II
T=int(input()) i=1 while(i<=T): a,b=list(map(int,input().split())) print(a+b) i=i+1
2025-06-17
0
9
题解 | 四季
ym=str(input()) mon=int(ym[4:]) if mon==3 or mon==4 or mon==5: print('spring') elif mon==6 or mon==7 or mon==8: print('summer') elif mon==9 or...
2025-06-17
0
9
题解 | 最大最小值
a,b,c=list(map(int,input().split())) # max_value=max(a,b,c) # min_value=min(a,b,c) if a>=b and a>=c: max_value=a elif b>=a and b>=c: ...
2025-06-17
0
9
题解 | 牛牛是否被叫家长
a,b,c=list(map(int,input().split())) avg=float((a+b+c)/3) if avg<60: print('YES') else: print('NO')
2025-06-17
0
9
题解 | 比大小
a,b=list(map(int,input().split())) if a<b: print('<') elif a==b: print('=') else: print('>')
2025-06-17
0
7
题解 | 判断闰年
n=int(input()) if n%400==0: print('yes') elif n%4==0 and n%100!=0: print('yes') else: print('no')
2025-06-17
0
10
题解 | 明天星期几?
d=int(input()) if d==7: print(1) else: print(d+1)
2025-06-17
0
8
题解 | 牛牛学立体
a,b,c=list(map(int,input().split())) print(2*(a*b+b*c+c*a),a*b*c,sep='\n')
2025-06-17
0
7
首页
上一页
1
2
3
下一页
末页