08 2016 档案

摘要:You are given n points on a line with their coordinates xi. Find the point x so the sum of distances to the given points is minimal. You are given n p 阅读全文
posted @ 2016-08-26 13:23 PrayG 阅读(357) 评论(0) 推荐(0)
摘要:Find an n × n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are odd. Find an n × n matrix with di 阅读全文
posted @ 2016-08-26 13:17 PrayG 阅读(329) 评论(0) 推荐(0)
摘要:转载自:http://blog.csdn.net/fengchaokobe/article/details/7437767 目录 第一节 n阶幻方问题 第二节 由n阶幻方引发的思考正文第一节 n阶幻方问题 所谓n阶幻方问题,俗称“横竖斜相加和相等”(我们当时就是这么叫的)。用术语说就是:在一个N行N 阅读全文
posted @ 2016-08-26 13:01 PrayG 阅读(1193) 评论(0) 推荐(0)
摘要:output standard output The only king stands on the standard chess board. You are given his position in format "cd", where c is the column from 'a' to 阅读全文
posted @ 2016-08-26 12:01 PrayG 阅读(368) 评论(0) 推荐(0)
摘要:原文地址:http://www.hankcs.com/program/cpp/cin-tie-with-sync_with_stdio-acceleration-input-and-output.html http://www.clanfei.com/2012/03/235.html 在网上查看别人 阅读全文
posted @ 2016-08-08 16:19 PrayG 阅读(30148) 评论(7) 推荐(20)
摘要:C. They Are Everywhere time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. They Are Every 阅读全文
posted @ 2016-08-08 16:17 PrayG 阅读(376) 评论(0) 推荐(0)
摘要:B. Cells Not Under Attack time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Cells Not U 阅读全文
posted @ 2016-08-08 16:11 PrayG 阅读(382) 评论(0) 推荐(0)
摘要:A. Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Cards time limit per test 1 s 阅读全文
posted @ 2016-08-08 15:59 PrayG 阅读(373) 评论(0) 推荐(0)
摘要:Description Polycarp has quite recently learned about email aliases. Of course, he used to suspect that the case of the letters doesn't matter in emai 阅读全文
posted @ 2016-08-03 14:27 PrayG 阅读(348) 评论(0) 推荐(0)
摘要:Description Hooray! Berl II, the king of Berland is making a knight tournament. The king has already sent the message to all knights in the kingdom an 阅读全文
posted @ 2016-08-03 14:13 PrayG 阅读(393) 评论(0) 推荐(0)
摘要:Description standard input/outputStatements You are given three numbers. Is there a way to replace variables A, B and C with these numbers so the equa 阅读全文
posted @ 2016-08-03 13:55 PrayG 阅读(294) 评论(0) 推荐(0)
摘要:Description On vacations n pupils decided to go on excursion and gather all together. They need to overcome the path with the length l meters. Each of 阅读全文
posted @ 2016-08-03 13:50 PrayG 阅读(271) 评论(0) 推荐(0)
摘要:原文地址 : http://www.cnblogs.com/HarryGuo2012/p/4524041.html 阅读全文
posted @ 2016-08-03 13:24 PrayG 阅读(175) 评论(0) 推荐(0)