摘要: “又到了五月了呢”,icebound望着五月的天空,眼角流出了泪痕。那一年,icebound还是一个懵懂的少年。那一年,她还是一个青涩纯真的少女。在那一次偶然的相遇之中,他们之间擦出了爱情的火花。他们欢笑着,奔跑着,他们展望着美好的未来,向往着幸福的明天。她像 icebound 心海中的灯塔,像ic 阅读全文
posted @ 2019-05-01 19:18 _yjun 阅读(294) 评论(0) 推荐(0) 编辑
摘要: Give nn n non negative integers, please find the least non negative integer that doesn’t occur in the nn n numbers. 输入: The first line is an integer T 阅读全文
posted @ 2019-05-01 19:09 _yjun 阅读(463) 评论(0) 推荐(0) 编辑
摘要: You are given a sequence a1,a2,…,an consisting of n integers. You can choose any non negative integer D (i.e. D≥0), and for each ai you can: add D (on 阅读全文
posted @ 2019-04-18 00:50 _yjun 阅读(447) 评论(0) 推荐(0) 编辑
摘要: Polycarp has guessed three positive integers a, b and c. He keeps these numbers in secret, but he writes down four numbers on a board in arbitrary ord 阅读全文
posted @ 2019-04-18 00:35 _yjun 阅读(397) 评论(0) 推荐(0) 编辑
摘要: There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 const int N=2e2+5; using namespace std; int a[N]; 阅读全文
posted @ 2019-04-09 01:14 _yjun 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a numb 阅读全文
posted @ 2019-04-03 01:24 _yjun 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 在N N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。 Output 阅读全文
posted @ 2019-04-03 01:11 _yjun 阅读(329) 评论(0) 推荐(0) 编辑
摘要: The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of 阅读全文
posted @ 2019-04-03 01:07 _yjun 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将 阅读全文
posted @ 2019-04-03 00:50 _yjun 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小象同学在初等教育时期遇到了一个复杂的数学题,题目是这样的: 给定自然数 nn n,确定关于 x,y,zx, y, z x,y,z 的不定方程 x−n+y−z=0\displaystyle \sqrt{x \sqrt{n}} + \sqrt{y} \sqrt{z} =0的所有自然数解。 当 阅读全文
posted @ 2019-04-01 17:11 _yjun 阅读(299) 评论(0) 推荐(0) 编辑