哈哈~柳暗花明
哈哈~柳暗花明
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Renaissancer的博客
全部文章
/ 题解
(共75篇)
有序_python3
n = int(input()) l = list(map(int, input().split())) l.append(int(input())) l.sort() print(' '.join(str(i) for i in l))
2020-07-01
0
510
有序判断_python3
input() l = list(map(int, input().split())) print('sorted' if l == sorted(l) or l == sorted(l, reverse=True) else 'unsorted')
2020-07-01
1
490
矩阵计算_python3
n, m = map(int, input().split()) l = [] for _ in range(n): l.extend(list(map(int, input().split()))) l.append(0) l.sort() print(sum(l[l.index(0):]...
2020-07-01
1
602
密码验证_python3
while True: try: p, p2 = input().split() print('same' if p == p2 else 'different') except EOFError: break
2020-07-01
0
574
有序序列_python3
n = int(input()) l = list(map(int, input().split())) l.append(int(input())) l.sort() print(' '.join(str(i) for i in l))
2020-07-01
0
524
统计成绩_python3
n = int(input()) lf = list(map(float, input().split())) print('{:.2f} {:.2f} {:.2f}'.format(max(lf), min(lf), sum(lf)/n))
2020-07-01
0
619
登录验证_python3
while True: try: u, p = input().split() print('Login Success!' if u == p and u == 'admin' else 'Login Fail!') except EOFError:...
2020-06-30
0
578
图像相似度_python3
a = [] b = [] m,n = map(int, input().split()) for i in range(m): l = list(map(int, input().split())) a.append(l) for i in range(m): l = li...
2020-06-30
1
695
筛选素数_python3
N = 101 pl = list(range(2,N)) pn = [0]*N for i in range(2, N): pn[i] = pn[i-1] + 1 if pl.count(i) > 0 else pn[i-1] for j in range(pn[i]): ...
2020-06-30
0
725
有序序列_python3
n = int(input()) l = list(map(int, input().split())) l.append(int(input())) l.sort() print(' '.join(str(i) for i in l))
2020-06-30
0
548
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页