Search found 5 matches

by rs17
Tue Aug 12, 2008 5:18 pm
Forum: Volume 114 (11400-11499)
Topic: 11478 - Halum
Replies: 0
Views: 1164

11478 - Halum

I've got Wrong Answer on this one. And I notice that there is only one person, who is problem setter of this problem, getting Accepted on this problem. So I doubt if there are some tricky/wrong test case.

My algorithm is binary search the answer(pre-determine if the answer is infinite) and use ...
by rs17
Mon Jul 14, 2008 2:45 pm
Forum: Volume 100 (10000-10099)
Topic: 10044 - Erdos Numbers
Replies: 102
Views: 55231

Re: 10044 - Erdos Numbers

After lots of REs I realize that there must be some extra empty lines in the input file!!!(There's nothing about this in the problem statement.) I changed my program and got Accepted.
by rs17
Thu May 15, 2008 3:38 pm
Forum: Volume 9 (900-999)
Topic: 942 - Cyclic Numbers
Replies: 3
Views: 4185

Re: 942 - Cyclic Numbers

The problem setter is very irresponsible because I've got Accepted after I submitted this code:

#include<stdio.h>
#include<assert.h>
char s[10000];
int main()
{
int i;
while(gets(s))
for(i=0; s[i]; i++)
assert(s[i]>='0' && s[i]<='9' || s[i]==' ');
return 0;
}


Maybe the site admin. should ...
by rs17
Thu May 15, 2008 2:56 pm
Forum: Volume 9 (900-999)
Topic: 942 - Cyclic Numbers
Replies: 3
Views: 4185

Re: 942 - Cyclic Numbers

I can't tell you how angry I am when I realize that the numerator and denominator in the problem can be very large(exceed long long in C/C++) after lots of TLEs & REs. :evil:

The problem setter should add this information in the problem statement I think.
by rs17
Tue Jul 03, 2007 6:02 am
Forum: Volume 101 (10100-10199)
Topic: 10174 - Couple-Bachelor-Spinster Numbers.
Replies: 3
Views: 2550

10174 - Couple-Bachelor-Spinster Numbers.

Can anybody give me some test cases? I used long long to avoid integer overflow but I still have got 5 WAs.

Thanks in advance.

Go to advanced search