SGU
synapse7
这个作者很懒,什么都没留下…
展开
-
SGU 115 Calendar (模拟)
time limit per test: 0.5 sec. memory limit per test: 4096 KBhttp://acm.sgu.ru/problem.php?contest=0&problem=115First year of new millenium is gone away. In commemoration of it write a progra原创 2013-08-27 19:25:26 · 895 阅读 · 0 评论 -
SGU 127 Telephone directory (模拟)
time limit per test: 0.5 sec. memory limit per test: 4096 KBhttp://acm.sgu.ru/problem.php?contest=0&problem=127CIA has decided to create a special telephone directory for its agents. The fir原创 2013-08-28 14:50:56 · 1007 阅读 · 0 评论 -
SGU 107 987654321 problem (数论)
time limit per test: 0.5 sec. memory limit per test: 4096 KBFor given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 987654321.Input原创 2013-08-27 19:08:02 · 1772 阅读 · 0 评论 -
SGU 104 Little Shop of Flowers (DP&打印路径)
http://acm.sgu.ru/problem.php?contest=0&problem=104/*15ms,142KB*/#includeusing namespace std;const int mx = 105;int a[mx][mx], dp[mx][mx], f;void print(int i, int j){ if (i == 0) retur原创 2014-03-23 18:35:29 · 1377 阅读 · 0 评论 -
SGU 108 Self-numbers 2 (另一种滚动数组)
http://acm.sgu.ru/problem.php?contest=0&problem=108我直接转的http://www.cnblogs.com/staginner/archive/2011/12/24/2300689.html他写得很好:这个题目可以直接筛出来结果,但要注意几个问题:①数组不够大,但由于推断的时候前后影响的区间并不大,因此我们可以把转载 2014-03-23 20:49:53 · 1400 阅读 · 0 评论