![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
洛谷
nucleare
这个作者很懒,什么都没留下…
展开
-
Python 输出整个字符画
https://www.luogu.org/problemnew/show/P1000print(""" ******** ************ ####....#. #..###.....##.... ###.......###### ...原创 2019-06-13 12:38:57 · 2583 阅读 · 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 · 1792 阅读 · 0 评论 -
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 · 1022 阅读 · 0 评论 -
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 · 406 阅读 · 0 评论 -
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 · 2207 阅读 · 0 评论 -
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 · 1657 阅读 · 0 评论