莫燿汶
莫燿汶
全部文章
分类
题解(62)
归档
标签
去牛客网
登录
/
注册
莫燿汶的博客
第一语言python的小白
全部文章
(共60篇)
题解 | #水仙花数#
while True: try: m, n = map(int, input().split()) lis = [] for i in range(m, n + 1): add = map(lambda x: int(x...
Python3
2022-04-19
1
398
题解 | #KiKi求质数个数#
a = 0 for i in range(100, 1001): for j in range(2, i): if (i % j) ==0: break else: a += 1 print(a)
Python3
2022-04-19
2
339
题解 | #牛牛的计划#
y, ***p(int, input().split()) y1, m1, d1 = map(int, input().split()) if y1 >= y: print("yes") elif y1 >= y and m1 >= m: print("yes") ...
Python3
2022-04-18
0
322
题解 | #三角形判断#
while True: try: num = list(map(int, input().split())) num .sort() if num[0] + num[1] <= num[2]: # 两短边之和小于第三遍,三角形不成立 ...
Python3
2022-04-18
0
413
题解 | #牛牛的金币#
niu = input().split() jin = input().split() x, y = map(lambda x, y:int(y)-int(x), niu, jin) if x > 0: print("r") elif x < 0: print("l") ...
Python3
2022-04-18
0
217
题解 | #牛牛的快递#
a, b = input().split() if b == "y": if float(a) % 1 > 0: print(int(20 + 5 + ((float(a) - 1) // 1 + 1))) else: print(int(20 ...
Python3
2022-04-17
0
276
题解 | #小乐乐定闹钟#
a, b = input().split() a1, a2 = map(int, a.split(":")) b1, b2 = (int(b)+a2) // 60, (int(b)+a2) % 60 # 把分钟并到一起计算 print("%s:%s" % (str((b1+a1)%24).rjust...
Python3
2022-04-15
0
291
题解 | #牛牛的水杯#
a, b = input().split() R = int(a)*3.14*int(b)**2 if 10000%R>0: print(int(10000//R+1)) else: print(10000/R)
Python3
2022-04-15
0
290
题解 | #计算三角形的周长和面积#
海伦公式 side = [int(i) for i in input().split()] a, b, c = side circl = sum(side)/2 mi = circl*(circl-a)*(circl-b)*(circl-c) S = pow(mi, 0.5) print("circ...
Python3
2022-04-15
0
247
题解 | #开学?#
num1, num2 = [int(i) for i in input().split()] if (num1 + (num2 % 7)) > 7: print((num1 + (num2 % 7)) - 7) else: print((num1 + (num2 % 7)))
Python3
2022-04-15
0
182
首页
上一页
1
2
3
4
5
6
下一页
末页