摘要: #include #include #include #include #include #include #include #include using namespace std;typedef long long ll;#define ElemType int#... 阅读全文
posted @ 2018-09-24 16:11 ~~zcy 阅读(99) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-09-24 14:53 ~~zcy 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Since Sonya is interested in robotics too, she decided to construct robots that will read and recognize numbers.Sonya has drawn nnumbe... 阅读全文
posted @ 2018-09-21 19:52 ~~zcy 阅读(141) 评论(0) 推荐(0) 编辑
摘要: DescriptionKatya studies in a fifth grade. Recently her class studied right triangles and the Pythagorean theorem. It appeared, that t... 阅读全文
posted @ 2018-09-21 10:50 ~~zcy 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 平方和与立方和Description给定一段连续的整数,求出他们中所有偶数的平方和以及所有奇数的立方和。Input输入数据包含多组测试实例,每组测试实例包含一行,由两个整数m和n组成。Output对于每组输入数据,输出一行,应包括两个整数x和y,分别表示该段连续的整数... 阅读全文
posted @ 2018-09-20 15:22 ~~zcy 阅读(88) 评论(0) 推荐(0) 编辑
摘要: Description你有一条由N个红色的,白色的,或蓝色的珠子组成的项链(3#include #include #include #include #include #include using namespace std;typedef long long ll;... 阅读全文
posted @ 2018-09-17 20:21 ~~zcy 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Description农民约翰母牛总是产生最好的肋骨。 你能通过农民约翰和美国农业部标记在每根肋骨上的数字认出它们。 农民约翰确定他卖给买方的是真正的质数肋骨,是因为从右边开始切下肋骨,每次还剩下的肋骨上的数字都组成一个质数,举例来说: 7 3 3 1 全部肋骨上的... 阅读全文
posted @ 2018-09-17 19:35 ~~zcy 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Description现在是晚餐时间,而母牛们在外面分散的牧场中。 农民约翰按响了电铃,所以她们开始向谷仓走去。 你的工作是要指出哪只母牛会最先到达谷仓(在给出的测试数据中,总会有且只有一只速度最快的母牛)。 在挤奶的时候(晚餐前),每只母牛都在她自己的牧场上,一些牧... 阅读全文
posted @ 2018-09-15 16:35 ~~zcy 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Description 下面是一个乘法竖式,如果用我们给定的那n个数字来取代*,可以使式子成立的话,我们就叫这个式子牛式。 * * * x * * ------- * * * * * * ------- * * ... 阅读全文
posted @ 2018-09-15 14:33 ~~zcy 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the ph... 阅读全文
posted @ 2018-09-15 14:04 ~~zcy 阅读(177) 评论(0) 推荐(0) 编辑