- 博客(6)
- 收藏
- 关注
原创 Python P1424 小鱼的航程(改进版)
https://www.luogu.org/problemnew/show/P1424x, n = map(int, input().split())ans = (n//7)*5n %= 7while n > 0 : if x != 6 and x != 7 : ans += 1 x += 1 n -= 1print(ans*250)...
2019-06-22 15:36:49 2217
原创 Python P1008 三连击
https://www.luogu.org/problemnew/show/P1008a = []b = []for i in range(0, 10): a.append(str(i)) b.append(0)c = []for i in range(1, 10): for j in range(1, 10): if j == i : ...
2019-06-21 17:17:52 410
原创 Python P1909 买铅笔
https://www.luogu.org/problemnew/show/P1909n = int(input())ans = 9999999999999for i in range(3): a = list( map(int, input().split()) ) k = ((n+(a[0]-1))//a[0])*a[1] ans = min(ans, k)...
2019-06-21 14:28:37 1039
原创 Python P1089 津津的储蓄计划
https://www.luogu.org/problemnew/show/P1089k = -1sum, last = 0,0for i in range(12): a = int(input()) if(last + 300 < a) : k = i + 1 break last = last + 300 - a ...
2019-06-18 15:16:39 1669
原创 Python 输出整个字符画
https://www.luogu.org/problemnew/show/P1000print(""" ******** ************ ####....#. #..###.....##.... ###.......###### ...
2019-06-13 12:38:57 2586 1
原创 Python 保留小数位
https://www.luogu.org/problemnew/show/P14221.round()内置方法a = int(input())sum = 0if(a >= 401): sum += (a-400)*0.5663 a = 400if(a >= 151): sum += (a-150)*0.4663 a = 150sum += a*0.4...
2019-06-13 12:32:46 1796
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人