哈哈~柳暗花明
哈哈~柳暗花明
全部文章
分类
题解(115)
归档
标签
去牛客网
登录
/
注册
Renaissancer的博客
全部文章
(共75篇)
走台阶_python3
f = [1]*31 def fib(n): if not (f[n] > 1 or n < 2): f[n] = fib(n-1) + fib(n-2) return f[n] fib(30) print(f[int(input())])
2020-07-02
0
579
最大公约数_python3
坑爹阿,浮点除法不准。。。 def hcf(n, m): return m if not n%m else hcf(m,n%m) l = list(map(int, input().split())) x = hcf(max(l), min(l)) print(int(x+l[0]*l[1]...
2020-07-02
0
544
定闹钟_python3
while True: try: t, s = input().split() h, m = map(int, t.split(':')) print('{:02d}:{:02d}'.format((h+(m+int(s))//60)%24, ...
2020-07-02
1
558
进制转换_python3
def baseN(num,b): return ((num==0) and '0') or (baseN(num/b,b).lstrip('0') + '0123456789ABCDEF'[int(num%b)]) print(baseN(int(input()),6))
2020-07-02
0
681
井字棋_python3
l = [] for i in range(3): l.extend(input().split()) lx = ['K', 'K', 'K'] ly = ['B', 'B', 'B'] m = {'K':'KiKi wins!', 'B':'BoBo wins!', 'O':'No win...
2020-07-02
4
613
杨辉三角_python3
l = [[0]*i for i in range(1, 31)] for i in range(30): for j in range(i+1): if j == 0 or i == j: l[i][j] = 1 else: ...
2020-07-01
0
584
上三角矩阵_python3
n = int(input()) l = [] for i in range(n): l.extend(list(map(int, input().split()))) i = j = 0 for i in range(n): for j in range(n): i...
2020-07-01
0
827
最高身高_python3
n,m = map(int, input().split()) l = [] for i in range(n): l.extend(list(map(int, input().split()))) index = l.index(max(l)) x = index // m print(x...
2020-07-01
0
542
矩阵定位_python3
n,m = map(int, input().split()) l = [input().split() for _ in range(n)] x,y = map(int, input().split()) print(l[x-1][y-1])
2020-07-01
1
587
班级成绩_python3
l = [list(map(float, input().split())) for _ in range(5)] for i in range(5): for j in range(5): print('{:.1f} '.format(l[i][j]), end=''...
2020-07-01
0
517
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页