
其他OJ
文章平均质量分 81
GooMaple
这个作者很懒,什么都没留下…
展开
-
URAL 1102 Strange Dialog
一个元素一个元素往后判断,注意inputon和inputone等特殊情况的判断。 用逆序判断会更加简单 。 代码如下: #include #include #include #include #include using namespace std; char a[10000002]; int solve() { int len = strlen(a), flag = 0原创 2012-08-02 10:54:36 · 669 阅读 · 0 评论 -
ZOJ 1577 - GCD & LCM
GCD & LCM Time Limit: 2 Seconds Memory Limit: 65536 KB Given x and y (2 1) p and q are positive integers; 2) GCD(p, q) = x; 3) LCM(p, q) = y. Input x and y, one line for each test.原创 2013-02-02 23:08:40 · 1008 阅读 · 0 评论 -
CodeForces 128A
A. Statues time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output In this task Anna and Maria play a game with a v原创 2013-02-07 18:19:46 · 1143 阅读 · 0 评论