叶花永不相见
叶花永不相见
全部文章
分类
题解(183)
归档
标签
去牛客网
登录
/
注册
叶花永不相见的博客
全部文章
(共155篇)
题解 | #网购#
v,m,d,t = map(float, input().split()) if m == 11 and d == 11: v *= 0.7 if t == 1: v -= 50 elif m == 12 and d == 12: v *= 0.8 i...
Python3
2022-06-14
0
295
题解 | #统计数据正负个数#
n = map(int, input().split()) pos = 0 neg = 0 for i in n: if i > 0: pos += 1 else: neg += 1 print("positive:%d" % pos) prin...
Python3
2022-06-14
0
307
题解 | #牛牛的二三七整除#
n = int(input()) list = [2, 3, 7] flag = 0 for i in list: if n % i == 0: print(i, end = " ") flag = 1 if flag == 0: print("n")
Python3
2022-06-14
0
315
题解 | #判断是不是字母#
while 1: try: n = input() if n.isalpha(): print("{} is an alphabet." .format(n)) else: print("{} i...
Python3
2022-06-13
0
249
题解 | #健康评估#
w,h = map(float, input().split()) bmi = w/(h**2) if 18.5 <= bmi <= 23.9: print("Normal") else: print("Abnormal")
Python3
2022-06-13
0
266
题解 | #四季#
m = int(input()[-2:]) if 3 <= m <= 5: print("spring") elif 6 <= m <= 8: print("summer") elif 9 <= m <= 11: print("autumn...
Python3
2022-06-13
0
264
题解 | #判断闰年#
n = int(input()) if (n % 4 == 0 and n % 100 != 0) or n % 400 == 0: print("yes") else: print("no")
Python3
2022-06-12
0
296
题解 | #牛牛的判断题#
x,l,r = map(int, input().split()) if l <= x <= r: print("true") else: print("false")
Python3
2022-06-12
0
398
题解 | #判断是元音还是辅音#
while True: try: a = input() if a.lower() in ('a','e','i','o','u'): print("Vowel") else: print("Co...
Python3
2022-06-12
0
292
题解 | #判断整数奇偶性#
while True: try: n = int(input()) if n % 2 == 0: print("Even") else: print("Odd") except: ...
Python3
2022-06-12
0
317
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页