![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ccf(python)
wadsn.
这个作者很懒,什么都没留下…
展开
-
20191202 回收站选址
20191202 回收站选址 python 题目 代码 n = int(input()) r={} count = [0]*5 for i in range(n): sr = input().split() r[sr[0]+','+sr[1]] = 1 for item in r: flag = 0 point = 0 x,y = map(int,item.split(',')) if r.get(str(x-1)+','+str(y),0)==1 and原创 2020-12-12 22:23:54 · 75 阅读 · 0 评论 -
CCF20191201 报数
CCF20191201 报数 python 刚好最近在准备 ccf 的考试,在这里记录一些简单的代码。 题目 准备两个变量,少弄循环比较容易过。 代码 n,n0= 0,0 num = int(input()) a=[] for i in range(4): a.append(0) while n<num: n+=1 n0+=1 if n0%7==0 or '7' in str(n0): a[n0%4-1]+=1 n-=1 for i i原创 2020-12-12 21:41:59 · 69 阅读 · 1 评论