燕草如碧
燕草如碧
全部文章
分类
题解(60)
归档
标签
去牛客网
登录
/
注册
燕草如碧的博客
全部文章
(共63篇)
题解 | #水仙花数#
还算比较敢单 while 1: try: m,n = map(int,input().split()) flag = [] for i in range(m,n+1): sum1=0 add = ...
Python3
2022-06-17
0
290
题解 | #小乐乐算多少人被请家长#
没啥营养 n = int(input()) count = 0 for i in range(1,n+1): a = list(map(int,input().split())) if(sum( a)/len(a))<60: count+=1 print(co...
Python3
2022-06-17
0
223
题解 | #包含数字9的数#
感感单单 count =0 for i in range (1,2020): for j in str(i): if j == '9': count+=1 break print(count)
Python3
2022-06-17
0
256
题解 | #牛牛学数列4#
吸取楼上的解法,更易懂了. n = int(input()) print(sum([sum([i for i in range(1,i+1)])for i in range(1,n+1)])) 内外循环更容易看懂
Python3
2022-06-17
0
188
题解 | #牛牛学数列2#so easy
n = int(input()) sum=0.0 for i in range(1,n+1): sum += 1/i +0.0000000000000000001 print(f"{sum:.6f}")
Python3
2022-06-17
0
289
题解 | #乘法表#敢敢单单
敢敢单单 for i in range(1,10): for j in range(0,i): if i==j+1: print(f"{j+1:}*{i:}={i*(j+1):2d}",end ="") else: ...
Python3
2022-06-17
0
302
题解 | #牛牛的计划#
plan = int("".join(input().split())) date = int("".join(input().split())) if plan <=date: print("yes") else: print("no")
Python3
2022-06-14
0
261
题解 | #牛牛的金币#
x,y = map (int,input().split()) x1,y1 = map(int,input().split()) y2 = y1-y x2 = x1-x if (x2,y2)==(0,1): print("u") if (x2,y2)==(0,-1): print("...
Python3
2022-06-14
0
222
题解 | #计算商品打折结算金额#
a = float(input()) if a >5000: a= a*0.6 elif a>2000: a = a*0.7 elif a>500: a = a*0.8 elif a>100: a = a*0.9 print(f"{a:.1f}...
Python3
2022-06-14
0
287
题解 | #牛牛的快递#
import math a = input().split() weight = float(a[0]) price = 0 emg = a[1] if weight <= 1: price = 20 if emg == 'y': price = price +...
Python3
2022-06-14
0
243
首页
上一页
1
2
3
4
5
6
7
下一页
末页