叶花永不相见
叶花永不相见
全部文章
分类
题解(183)
归档
标签
去牛客网
登录
/
注册
叶花永不相见的博客
全部文章
(共50篇)
题解 | #有序序列合并#
n, m = map(int, input().split()) ls1 = list(map(int, input().split())) ls2 = list(map(int, input().split())) ls = ls1 + ls2 ls.sort() for i in range(n...
Python3
2022-06-28
0
268
题解 | #[NOIP2015]金币#
k = int(input()) sum = 0 cnt = 0 i = 1 while cnt < k: cnt += i sum += i*i i += 1 sum -= (i-1)*(cnt-k) print(sum)
Python3
2022-06-24
0
312
题解 | #直角三角形图案#
while 1: try: n = int(input()) for i in range(1, n+1): print("* "*i) except: break
Python3
2022-06-24
0
315
题解 | #正方形图案#
while 1: try: n = int(input()) for i in range(n): print("* "*n) except: break
Python3
2022-06-24
0
363
题解 | #回文对称数#
n = int(input()) for i in range(1, n+1): if str(i)[::-1] == str(i): print(i)
Python3
2022-06-24
0
301
题解 | #变种水仙花#
for i in range(10000, 100000): sum = 0 a = 10000 while a!=1: sum += (i//a) * (i % a) a //= 10 if sum == i: pr...
Python3
2022-06-23
0
264
题解 | #反向输出一个四位数#
while 1: try: n = input() for i in range(1,5): print(n[-i],end="") except: break
Python3
2022-06-23
1
297
题解 | #公务员面试#
while 1: try: max = 0 min = 100 sum = 0 n = map(float, input().split()) for i in n: sum += i ...
Python3
2022-06-23
0
280
题解 | #水仙花数#
while 1: try: m, n = map(int, input().split()) flag = 0 for i in range(m, n+1): tmp = i sum = 0 ...
Python3
2022-06-23
0
258
题解 | #小乐乐算多少人被请家长#
n = int(input()) cnt = 0 for i in range(n): a,b,c = map(int, input().split()) if (a+b+c)/3 < 60: cnt += 1 print(cnt)
Python3
2022-06-22
0
304
首页
上一页
1
2
3
4
5
下一页
末页