## Search found 7 matches

Sun Oct 24, 2004 5:27 pm
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20538
the LA-Z-BOy wrote:hi...
Thank you very much. I got accepted.
Sat Oct 23, 2004 8:58 pm
Forum: Volume 105 (10500-10599)
Topic: 10500 - Robot maps
Replies: 45
Views: 13714
I got WA either but I got every problem stated here solved, and even eliminated some more bugs of my own. Would you all mind providing some extreme test cases for me...?
Sat Oct 23, 2004 6:52 pm
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20538

### 10338 WA...

Maybe I'm irresponsible, but I'd used the n!/(n1!*n2!...) algorithm and got WA. I don't dare to use long long so I check if the range was exceeded then pause and just start dividing, and once it's indivisible with a certain number then build up the remaining factorial, and so forth: [c] #include <st...
Mon Feb 17, 2003 2:45 pm
Forum: Volume 6 (600-699)
Topic: 619 - Numerically Speaking
Replies: 10
Views: 4910

### Re: 619

how can declare the own strcuture ? can u tell me how to do it? Strings are character arrays in C. This makes manipulation on extremely big integers by string easier. For this question, you can consider the steps of long division which helps the whole number handling a lot. Meanwhile, I get accepte...
Thu Feb 13, 2003 9:31 am
Forum: Volume 103 (10300-10399)
Topic: 10371 - Time Zones
Replies: 12
Views: 5512

### 10371 problem

Sorry that I have no choice but posting my code here to check the bugs... (The problem is Wrong Answer) #include <stdio.h> #include <stdlib.h> #include <math.h> int Mdiff(char time[]) { float difference; int output; if (strcmp(time, "UTC") == 0) difference = 0.0; if (strcmp(time, "GMT") == 0) differ...
Sat Jan 25, 2003 12:26 pm
Forum: Volume 6 (600-699)
Topic: 602 - What Day Is It?
Replies: 56
Views: 22326

### Sorry...

Output: January 1, 0 is a Thursday January 1, 1 is a Saturday March 1, 401 is a Friday March 1, 801 is a Monday February 29, 1000 is a Thursday March 1, 1000 is a Friday 9/3/1752 is an invalid date. 9/13/1752 is an invalid date. Do the days September 3rd 1752 until September 13th 1752 ever exist in...
Tue Jan 21, 2003 4:59 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 58495
Using long int works fine, since the sum of two 9-digit numbers is less than 2000000000 which fits in a long int, and in this case the sum is not even calculated. So does that explains why my program gets a WA either? int main() { int a, b, c; int i, count, carry; do { scanf("%d %d", &a, &b); if ((...