Kurenai.Dokukawa
Kurenai.Dokukawa
全部文章
分类
题解(41)
归档
标签
去牛客网
登录
/
注册
神の博客
一个半路出家的小白
全部文章
(共25篇)
Python3 题解 | #判断是不是字母#
#python3题解# lis = [] while 1: try: lis.append(input()) except: break print("\n".join(f"{i} is an alphabet." if i.isalpha() els...
Python3
2022-02-24
0
347
Python3 题解 | #健康评估#
#python3题解# #性能测试# weight, height = map(float,input().split()) print("Normal" if 18.5 <= weight/height**2 <= 23.9 else "Abnormal") 关于赋值的性能测试:(测...
Python3
2022-02-24
0
268
Python3 题解 | #四季#
#python题解# month = int(input()[-2:]) if 3 <= month <= 5: print("spring") elif 6 <= month <= 8: print("summer") elif 9 <= month ...
Python3
2022-02-24
2
346
Python3 题解 | #判断字母#
#趣味题干# #一行题解# print("YES" if input().isalpha() else "NO") // 就有点想测试一下 // 是的, 测试用例并不严谨, 下面这个写法也能通过 print("YES" if ord(input()) in range(65, 123) else "...
Python3
2022-02-24
1
320
Python3 题解 | #判断闰年#
#python3题解# num = int(input()) print("yes" if (num % 4 == 0 and num % 100 != 0) or num % 400 == 0 else "no")
Python3
2022-02-24
0
452
Python3 题解 | #牛牛的判断题#
#python3题解# x, l, r = map(int, input().split()) print("true" if l <= x <= r else "false")
Python3
2022-02-24
0
392
Python3 题解 | #判断是元音还是辅音#
#python3题解# lis = [] while 1: try: lis.append(input()) except: break vowel = ["A", "E", "I", "O", "U"] print("\n".join("Vowel"...
Python3
2022-02-24
0
317
Python3 题解 | #判断整数奇偶性#
#python3题解# lis = [] while 1: try: lis.append(input()) except: break print("\n".join("Odd" if int(x) % 2 else "Even" for x in ...
Python3
2022-02-24
0
327
Python3 题解 | #及格分数#
#Python3题解# lis = [] while 1: try: lis.append(input()) except: break print("\n".join("Pass" if int(x) >= 60 else "Fail" for...
Python3
2022-02-24
0
288
Python3 题解 | #牛牛的线段#
#Python3题解# lis = [] while 1: try: lis.append(list(map(int, input().split()))) except: break print((lis[0][0] - lis[1][0])**2 ...
Python3
2022-02-23
0
404
首页
上一页
1
2
3
下一页
末页