melon.
melon.
全部文章
分类
归档
标签
去牛客网
登录
/
注册
melon.的博客
全部文章
(共117篇)
题解 | #菱形图案#
while 1: try: n = int(input()) n += 1 for i in range(1,n+1): s = '* '*i s = s.center(n*2) ...
2023-02-17
1
257
题解 | #金字塔图案#
while 1: try: n = int(input()) for i in range(1,n+1): s = '* '*i s = s.center(n*2) print(s) ...
2023-02-17
1
180
题解 | #带空格直角三角形图案#
while 1: try: n = int(input()) for i in range(1,n+1): s = '* '*i s = s.rjust(n*2) print(s) ...
2023-02-17
1
206
题解 | #反向输出一个四位数#
print(input()[::-1])
2023-02-16
1
224
题解 | #公务员面试#
while 1: try: list = [i for i in map(int,input().split())] list.remove(max(list)) list.remove(min(list)) average =...
2023-02-16
1
244
题解 | #变种水仙花#
for i in range(10000,100000): sum = 0 i = str(i) for j in range(4): a,b = i[:j+1],i[j+1:] sum += int(a)*int(b) ...
2023-02-16
1
193
题解 | #水仙花数#
while 1: try: list = [] m,n = map(int,input().split()) for i in range(m,n+1): sum = 0 ...
2023-02-16
1
350
题解 | #小乐乐算多少人被请家长#
a = int(input()) n = 0 for i in range(1,a+1): score = map(int,input().split()) average = sum(score) / 3 if average < 60: n +=...
2023-02-16
1
242
题解 | #包含数字9的数#
n = 0 for i in range(1,2020): if '9' in str(i): n += 1 print(n)
2023-02-16
1
289
题解 | #魔法数字变换#
n = int(input()) step = 0 while n != 1: if n % 2 == 0: n /= 2 step += 1 else: n = n*3 + 1 step += 1 print(st...
2023-02-16
1
266
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页