10799 - OOPS! They did it Again...

All about problems in Volume 107. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
muvee
New poster
Posts: 25
Joined: Sun Sep 05, 2004 12:41 am

10799 - OOPS! They did it Again...

Post by muvee »

Input :
3305 8222 2254
1510 14039 6367
7857 21363 6968
10161 21788 6611
21619 31536 8926
19741 22715 149
11927 31477 449
13566 28739 12976
6905 17289 5461
8449 28390 2879
1975 21504 5473
14812 19499 2857
14977 29571 3951
16700 19404 1516
12932 15078 1591
25400 25700 243
5357 9961 1786
6180 13887 7104
9263 31550 11488
1634 16938 14063
20821 21221 231
19945 22439 567
21107 30232 7514
26352 30630 3618
3878 5028 413
6615 13739 3229
7487 12772 2433
4320 21624 12169
2673 23638 2572
29992 31682 1432
2735 24438 4471
22366 27414 1335
5050 28447 7503
20937 23134 1390
16720 28761 10269
11755 22866 5503
21559 27690 695
15600 31671 480
10962 23573 6580
3583 18905 434
16436 24069 4716
11135 14417 165
3047 20451 5939
17260 31868 2948
395 16753 15057
1196 24259 8062
4992 20086 7745
16716 23403 3432
1461 9502 6777
11664 13315 1226
11209 32129 3599
19756 30639 10126
6132 16584 4550
10939 32584 19283
21059 25517 202
6531 31709 16796
22234 31860 274
1247 23613 15606
993 4609 2766
4174 31780 26916
20662 25678 771
497 10829 9585
32316 32689 134
18079 21213 558
8905 30012 3800
358 12875 2254
9109 21165 8379
24314 27621 1064
14582 27765 2207
5910 20219 6388
16953 23617 2655
4691 28343 15170
13602 23274 3584
5680 20223 5952
10183 26962 12175
24298 28741 3918
5289 11801 331
15903 18020 401
5144 23173 3951
16468 28940 9688
9791 25586 14564
4957 11694 123
1541 4608 2299
24322 24896 484
3313 29984 13132
8459 31149 8577
18894 22279 1226
8115 27259 5246
5081 31261 17960
307 13856 4
4258 28673 13554
247 14561 2179
32 9592 1725
5177 8879 1195
7799 28065 14576
21239 24452 470
3258 12255 6508
119 8501 7540
5092 10655 5310
25024 26561 299
0 0 0
My output :
412
6164
0
5018
0
28420
416885
0
4925
59214
25758
1832
20085
0
557
59
1035
0
0
1243
171
4320
0
0
1066
4566
3276
5137
32444
0
42116
7143
25182
0
1774
5718
24072
126864
0
127993
0
31220
16996
11536
1303
6942
7351
0
1266
0
50635
0
1355
2364
22517
0
80121
0
0
0
13932
749
108
2928
19422
11518
3679
1182
32830
1536
5368
0
2507
2642
4606
0
61047
4590
32620
0
0
182710
770
0
410
19654
936
8655
0
15293434
0
40152
21945
3945
0
4014
0
0
0
3220
Thanks!
Sanny
Learning poster
Posts: 78
Joined: Sat Feb 14, 2004 3:59 pm
Location: BUET
Contact:

Post by Sanny »

My AC code gives the same output. Btw, have u printed the caseno?
muvee
New poster
Posts: 25
Joined: Sun Sep 05, 2004 12:41 am

Some more

Post by muvee »

Yes, I am printing case no number as well.

Please give me your output for this input :

Input :
1 20000000 5
19999999 20000000 2
5 18000000 15
10000000 15000000 23
0 0 0
Output:
Case 1: 49999990000000
Case 2: 0
Case 3: 11571414428574
Case 4: 568179545456

Thanks :)
Sanny
Learning poster
Posts: 78
Joined: Sat Feb 14, 2004 3:59 pm
Location: BUET
Contact:

Post by Sanny »

Yet again my AC code gives the same output. Try these -

Input:
1 20000000 2
1 20000000 3
1 20000000 4
0 0 0
Output:
Case 1: 99999990000000
Case 2: 99999990000000
Case 3: 33333323333334
muvee
New poster
Posts: 25
Joined: Sun Sep 05, 2004 12:41 am

Post by muvee »

And yet again my 'Wrong Answer' code matches the output of your 'Accepted' Code :( Any ideas anybody ?
Sanny
Learning poster
Posts: 78
Joined: Sat Feb 14, 2004 3:59 pm
Location: BUET
Contact:

Post by Sanny »

Try these-

Input:
1 2 2
1 5 2
1 5 3
1 5 4
1 5 5
1 1000 1000
1 1000 999
1 18 6
1 21 6
1 25 6
3 18 6
3 25 6
3 21 6
0 0 0

Output:
Case 1: 0
Case 2: 4
Case 3: 4
Case 4: 0
Case 5: 1
Case 6: 0
Case 7: 2
Case 8: 8
Case 9: 12
Case 10: 20
Case 11: 6
Case 12: 16
Case 13: 9
You can also check your scanf() & printf() if you're using __int64 and changing it to long long int before submission.
Vexorian
Learning poster
Posts: 100
Joined: Sat Aug 26, 2006 5:50 am

Post by Vexorian »

Hello, was having WA with this problem, this thread helped me find some reasons but not the last one. This is a case scenario that helped me find the last mistake:

Code: Select all

1 19999999 19999999
1 799 799
1 799999 799999
0 0 0

Code: Select all

Case 1: 1
Case 2: 1
Case 3: 1
I am guessing this could be useful for some
Post Reply

Return to “Volume 107 (10700-10799)”