I haven't tried it yet & have no time to have a try. But, have you tried
Code: Select all
1 0 1 0 1 0
Code: Select all
0
Don't ask me "WHY ?"......
Thanks.
Code: Select all
1 0 1 0 1 0
Code: Select all
0
Code: Select all
char flag[20000002]
Code: Select all
n = vt / v0 / 2;
if ((vt * n - v0 * n * n) == (vt * (n + 1) - v0 * (n + 1) * (n + 1)))
/* */
The people who solved it. did you consider it? The sample does not say so.Input will be terminated with N=0 and K=0.
What does it mean ? Would you explain more elaborately.....If match(above) then go if not check the second string just the same way
Code: Select all
aa aa aa
a a aaa
ab ac abc
Code: Select all
5
1 0
2 0
3 2
1 2
2 3
3 3
1 2
2 3
1 3
13 10
0 5
5 4
5 3
5 2
5 1
5 6
7 8
7 9
7 10
7 11
Code: Select all
1
2
1
-1
3