cfn
cfn
全部文章
分类
归档
标签
去牛客网
登录
/
注册
cfn的博客
全部文章
(共137篇)
题解 | #牛牛的金币#
x,y=map(int,input().split()) x1,y1=map(int,input().split()) if x==x1 and y1-y==1: print("u") elif x==x1 and y1-y==-1: print("d") elif y==y1 an...
2022-12-22
1
221
题解 | #牛牛的二三七整除#
n=int(input()) list=[] if n%2==0: list.append(2) if n%3==0: list.append(3) if n%7==0: list.append(7) sorted(list) if len(list)==0: pri...
2022-12-22
0
0
题解 | #统计数据正负个数#
n=list(map(int,input().split())) a=[] b=[] for i in n: if i>0: a.append(i) elif i<0: b.append(i) print(f"positive:{len(a...
2022-12-22
0
269
题解 | #网购#
n=list(map(float,input().split())) if n[1]==11 and n[3]==1 and n[0]*0.7>50: print(f"{(n[0]*0.7-50):.2f}") elif n[1]==11 and n[3]==1 and n[0]*0....
2022-12-22
0
188
题解 | #牛牛的快递#
a,b=input().split() if float(a)<=1 and b=="y": print(25) elif float(a)<=1 and b=="n": print(20) elif float(a)>1 and float(a)%1==0 and...
2022-12-22
0
204
题解 | #小乐乐找最大数#
n=map(int,input().split()) print(max(n))
2022-12-21
0
169
题解 | #健康评估#
w,h=map(float,input().split()) BMI=w/h**2 if 18.5<=BMI<=23.9: print("Normal") else: print("Abnormal")
2022-12-21
0
253
题解 | #四季#
n=input() if 3<=int(n[-2:])<=5: print("spring") elif 6<=int(n[-2:])<=8: print("summer") elif 9<=int(n[-2:])<=11: print("...
2022-12-21
0
192
题解 | #判断闰年#
n=int(input()) if n%4==0 and n%100!=0: print("yes") elif n%400==0: print("yes") else: print("no")
2022-12-21
0
158
题解 | #判断是元音还是辅音#
while True: try: n=input() if n in ["A","E","I","O","U","a","e","i","o","u"]: print("Vowel") else: ...
2022-12-21
0
268
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页