Search found 28 matches
- Mon Jun 04, 2007 1:14 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11218 - KTV
- Replies: 11
- Views: 6616
Test Case
I need some test case. I'm getting WA.
- Mon Apr 18, 2005 3:05 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10301 - Rings and Glue
- Replies: 50
- Views: 17527
Becareful about overlaping
I think some peopel get WA because of circle intersection/overlaping. Two circle will overlap if :- ** Distance between two center is less or equal (<=) sum of two radius and grater or equal (>=) abs_diff(radius1-radius2) In case of float/double data type using = is not good idea. Rather use fabs(x)...
- Sat Apr 16, 2005 4:23 pm
- Forum: Volume 2 (200-299)
- Topic: 254 - Towers of Hanoi
- Replies: 39
- Views: 17473
- Mon Mar 28, 2005 11:56 am
- Forum: Volume 103 (10300-10399)
- Topic: 10325 - The Lottery
- Replies: 14
- Views: 6918
Test these
Here is some test cases: Input: 100 4 2 3 5 7 20 2 4 6 100 6 2 5 8 30 101 7 2100000000 10 12345 54123 23425 20000 12312 22222 1234 2021 111111 12344321 2147483647 3 2147483647 2 128 Output: 22 13 34 2096573927 1073741823 If the above test cases are not enough, you can make your own test case for sma...
- Thu Feb 17, 2005 10:26 am
- Forum: Volume 102 (10200-10299)
- Topic: 10263 - Railway
- Replies: 14
- Views: 6085
Precision error.
I'm not a pascal progrqammer. Try to shear ideas rather sending codes. Most people prefer C/C++ But I think you check 1e-6 for precision error. I got accepted using 1e-10 for prcision error. :D Also becareful with the inputs. Coordinates can be in floating point num: It may help you... A tip if requ...
- Tue Nov 09, 2004 3:59 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10227 - Forests
- Replies: 23
- Views: 9722
I/O For u...
It is a very beautiful problem. You have to be careful about problem statements all the time.
INPUT:
INPUT:
Output:2
100 5
1 1
2 2
3 3
4 1
5 2
6 3
0 0
Hope it will help you. Good luck4
0

- Fri Sep 10, 2004 1:55 pm
- Forum: Volume 7 (700-799)
- Topic: 757 - Gone Fishing
- Replies: 6
- Views: 3777
- Tue Jul 13, 2004 9:53 am
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 31503
I check your code and it seems everything ok but it can not handle the input like following. Fix it and it may give you Accepted. :lol: INPUT: 0 Your output is: Day #1: the longest nap starts at 0:00 and will last for 18 hours and 0 minutes. Output should be: Day #1: the longest nap starts at 10:00 ...
- Tue Jul 13, 2004 9:36 am
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 31503
INPUT/OUTPUT
Here is some input/output for you. INPUT: 4 13:00 15:00 Boring lectures... 15:30 17:45 Reading 10:00 12:00 Lectures 12:00 13:00 Lunch, like always. 4 10:00 12:00 Lectures 13:00 15:00 Lectures, lectures... oh, no! 16:45 17:45 Reading (to be or not to be?) 12:00 13:00 Lunch, just lunch. 4 12:00 13:00 ...
- Wed Jul 07, 2004 9:50 am
- Forum: Volume 3 (300-399)
- Topic: 378 - Intersecting Lines
- Replies: 48
- Views: 16953
- Sun Jun 27, 2004 12:50 pm
- Forum: Other words
- Topic: Newcomer problems
- Replies: 15
- Views: 14511
- Tue Jun 22, 2004 12:48 pm
- Forum: Volume 1 (100-199)
- Topic: 120 - Stacks of Flapjacks
- Replies: 118
- Views: 16413
I got AC in this problem. But I don't think for a space Judge may reply a WA. But if more then one output is in same line it may give you WA. For example: output1 (space) output2 And if there is any extra space at the end of any output it will give you P.E For example: output1 (space) output2 (space...
- Tue Jun 22, 2004 12:28 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 26948
- Tue Jun 22, 2004 12:15 pm
- Forum: Volume 1 (100-199)
- Topic: 116 - Unidirectional TSP
- Replies: 226
- Views: 42674
Thanks to your input_output
Thank you very much SilentStrike. You post a beautiful sample input. It help me a lot to find the bug in my code.
Before testing with this input I was fool enought to find the bug...
It was just a simple mistake. I think most people are doing the same mistake as I do.
Finally I get AC
.
Before testing with this input I was fool enought to find the bug...
It was just a simple mistake. I think most people are doing the same mistake as I do.
Finally I get AC

- Mon Jun 21, 2004 2:56 pm
- Forum: Volume 3 (300-399)
- Topic: 362 - 18,000 Seconds Remaining
- Replies: 75
- Views: 28329
Bug in judge
I can't believe myself . . . :o :o :o I get WA with; remaintime=ceil(remainbyte/(transferbyte/5.0)); printf(" Time remaining: %ld seconds\n",long(remaintime)); I get AC with; remaintime=remainbyte/(transferbyte/5.0); printf(" Time remaining: %ld seconds\n",long(ceil(remaintime)))...