- 博客(3)
- 收藏
- 关注
原创 CCFcsp-python-201412-2-Z字形扫描
n = int(input()) res = [] for i in range(n): inp = list(map(int, input().split())) res.append(inp) dic = {} # 把对应的下表 放到字典中 for i in range(n): for j in range(n): if i+j not in dic: dic[i+j] = [(i,j)] else:
2021-04-10 20:37:28 106 2
原创 ccf, 202009-1, 称检测点查询, python
inp = list(map(int, input().split())) x = inp[1] y = inp[2] res0 = {} for i in range(inp[0]): D = 0 a, b = list(map(int, input().split())) D = (x-a)*(x-a)+(y-b)*(y-b) res0[i] = D res = sorted(res0.items(),key=lambda x:x[0]) print(res)
2021-03-25 11:16:19 62
原创 ccf, 202009-2, 风险人群筛查, python
在这里插入代码片@TOC 202009-2 // An highlighted block inp = list(map(int, input().split())) n = inp[0] k = inp[1] t = inp[2] x0,y0 = inp[3], inp[4] x1,y1 = inp[5], inp[6] resx= [] resy= [] through = 0 stay = 0 for i in range(n): inp1 = list(map(int, input().sp
2021-03-25 11:14:26 64
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人