
sgu算法题
文章平均质量分 79
abcd1992719g
这个作者很懒,什么都没留下…
展开
-
sgu100-熟悉环境
100. A+Btime limit per test: 0.25 sec. memory limit per test: 65536 KBRead integers A and B from input file and write their sum in output file.InputInput file contains A and B (0原创 2014-04-22 11:19:42 · 881 阅读 · 0 评论 -
sgu101-欧拉回路
101. Dominotime limit per test: 0.25 sec. memory limit per test: 4096 KBDominoes – game played with small, rectangular blocks of wood or other material, each identified by a number of dots,原创 2014-04-22 11:39:02 · 1582 阅读 · 0 评论 -
sgu103-最短路径
103. Traffic LightsTime limit per test: 0.25 second(s)Memory limit: 4096 kilobytesinput: standardoutput: standardIn the city of Dingilville the traffic is arranged in an unusual原创 2014-04-23 14:57:42 · 1115 阅读 · 0 评论 -
sgu104-动态规划
104. Little shop of flowerstime limit per test: 0.25 sec. memory limit per test: 4096 KBPROBLEMYou want to arrange the window of your flower shop in a most pleasant way. You have F bun原创 2014-04-23 15:09:41 · 1037 阅读 · 0 评论 -
sgu102-欧拉函数
102. Coprimestime limit per test: 0.25 sec. memory limit per test: 4096 KBFor given integer N (1N104) find amount of positive numbers not greater than N that coprime with N. Let us call two原创 2014-04-23 14:28:07 · 1210 阅读 · 0 评论 -
sgu105-数学
105. Div 3time limit per test: 0.25 sec. memory limit per test: 4096 KBThere is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must determine原创 2014-04-23 15:14:49 · 986 阅读 · 0 评论 -
sgu111-112大数运算
111原题链接http://acm.sgu.ru/problem.php?contest=0&problem=111112原题链接http://acm.sgu.ru/problem.php?contest=0&problem=112这里我超级偷懒,用了 JAVA的大数类~~~sgu111,二分查找import java.io.*;import java.math.原创 2014-05-09 16:10:17 · 1472 阅读 · 0 评论 -
sgu106-109
sgu106-109写的时间也有点长了,懒得讲了 = = 就粗略用别人的博客吧sgu106是关于不定方程,用了扩展欧几里德,下面的博客写的非常好http://blog.youkuaiyun.com/volzkzg/article/details/7427233sgu107就是一个发现规律的问题 = =sgu108 http://blog.youkuaiyun.com/winoros原创 2014-04-25 20:25:26 · 1362 阅读 · 0 评论 -
sgu110-计算几何
110. Dungeontime limit per test: 0.25 sec. memory limit per test: 4096 KBThe mission of space explorers found on planet M the vast dungeon. One of the dungeon halls is fill with the bright s原创 2014-04-26 12:23:07 · 1642 阅读 · 0 评论