自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除