摘要: Description Description Input Output Input Input Output Output Sample Input Input 1 2 16 2 Input 2 100 1000 2333333 Input 3 10000000000 10000001000 42 阅读全文
posted @ 2018-08-21 16:25 BEYang_Z 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Description Description Input Output Input Input Output Output Sample Input 4 10 0 1 1 Sample Output 5 Sample Input 4 10 0 1 1 Sample Input 4 10 0 1 1 阅读全文
posted @ 2018-08-21 16:21 BEYang_Z 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Description Description Input Output Input Input Output Output Sample Input 5 101 12 23 34 45 5 Sample Output 4 Sample Input 5 101 12 23 34 45 5 Sampl 阅读全文
posted @ 2018-08-21 16:12 BEYang_Z 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Description GZOI队员们到X镇游玩。X镇是一个很特别的城镇,它有m+1条东西方向和n+1条南北方向的道路,划分成m*n个区域,这些区域标从北到南、从西到东的坐标标识为从坐标 (1,1) 到坐标(m,n)。 GZOI队员们预先对这m*n个区域打分V(i,j)(分数可正可负)。分数越高表示 阅读全文
posted @ 2018-08-21 16:05 BEYang_Z 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Description GFS打算去郊外建所别墅,享受生活,于是他耗费巨资买下了一块风水宝地,但令他震惊的是,一群DSJ对GFS的富贵生活深恶痛绝,决定打洞以搞破坏。现在我们简化一下这个问题,在这片土地上会按顺序发生一系列事件。①一只DSJ在(x,y) 这个点打了一个洞。②有着高雅品味GFS想建一个 阅读全文
posted @ 2018-08-21 16:01 BEYang_Z 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Description 有 2n 个人玩拔河,拔河的绳子由左右两段组成,每段绳子上有 n 个位置,第 i 个人可以在左边绳子的 li 位置处,也可以在右边绳子的 ri 位置处。每个位置上有且仅有一个人。每个人有一个实力值 si ,问对于每一种合法方案两边实力值和之差的绝对值最小是多少,如果无解输出 阅读全文
posted @ 2018-08-21 15:49 BEYang_Z 阅读(508) 评论(0) 推荐(1) 编辑
摘要: Description Description Input Output Input Input Output Output Sample Input Sample Output Sample Input Sample Input Sample Output Sample Output Data C 阅读全文
posted @ 2018-08-21 15:36 BEYang_Z 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Description SillyHook要给小朋友出题了,他想,对于初学者,第一题肯定是a+b 啊,但当他出完数据后神奇地发现.in不见了,只留下了一些.out,他想还原.in,但情况实在太多了,于是他想要使得[a,b] ([a,b] 表示a,b 的最小公倍数)尽可能大。 Description 阅读全文
posted @ 2018-08-21 15:05 BEYang_Z 阅读(141) 评论(0) 推荐(0) 编辑