Getting WA. Please post some test cases.
Code Link:
http://ideone.com/Xf2YI6
Search found 26 matches
- Fri May 24, 2013 9:02 am
- Forum: Volume 117 (11700-11799)
- Topic: 11779 - Lost File
- Replies: 3
- Views: 3121
- Sun Mar 24, 2013 9:08 pm
- Forum: Volume 125 (12500-12599)
- Topic: 12593 - Next Generation Macaw
- Replies: 2
- Views: 1506
Re: RE 12593
Test Case:
Input:
Output:
Input:
Code: Select all
2
2000000000 100
1 1
Code: Select all
Case 1: 6678
Case 2: 2
- Sun Mar 24, 2013 8:59 pm
- Forum: Volume 125 (12500-12599)
- Topic: 12593 - Next Generation Macaw
- Replies: 2
- Views: 1506
12593 - Next Generation Macaw
The reason in simple, you are using trying to use more memory than available, use pointer as much as possible!
- Sat Sep 08, 2012 8:22 pm
- Forum: Volume 12 (1200-1299)
- Topic: 1216 - The Bug Sensor Problem
- Replies: 7
- Views: 7772
Re: 1216 - The Bug Sensor Problem : WA
So so so many thanks to brianfry! I am really thinking to send you some flowers! 

- Fri Sep 07, 2012 6:08 am
- Forum: Volume 12 (1200-1299)
- Topic: 1216 - The Bug Sensor Problem
- Replies: 7
- Views: 7772
1216 - The Bug Sensor Problem
Please help. Getting WA.
Code Link:
Hided after AC
Thanks in advance!
Code Link:
Hided after AC
Thanks in advance!
- Wed Jul 11, 2012 8:44 pm
- Forum: Bugs and suggestions
- Topic: 11297 - Census (BUG in problem description)
- Replies: 10
- Views: 15652
Re: 11297 - Census (BUG in problem description)
can somebody post some tough test cases? Getting WA
- Wed Jul 11, 2012 4:34 pm
- Forum: Bugs and suggestions
- Topic: 11297 - Census (BUG in problem description)
- Replies: 10
- Views: 15652
Re: 11297 - Census (BUG in problem description)
I have to say, poor problem description. No description of numbers 'C [i, j]' , no description of how there is 2 number at the beginning of test cases. If they have used 0 indexing...(though I think they haven't!!!) Can these be made clear?
- Thu Jun 28, 2012 3:10 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10258 - Contest Scoreboard
- Replies: 87
- Views: 48283
Re: 10258 - Contest Scoreboard
One Extra test case:
Code: Select all
1
1 2 10 I
3 1 11 C
3 1 25 C
1 2 19 R
1 2 21 C
1 1 25 C
Code: Select all
1 2 66
3 1 11
- Thu Jun 28, 2012 11:45 am
- Forum: Volume 117 (11700-11799)
- Topic: 11749 - Poor Trade Advisor
- Replies: 10
- Views: 5295
Re: 11749 : Didn't understand
A very disgusting problem with this one is... we have to initialize the adjacency matrix with Minimal number (better -2147483647) at first I initialized with -999999999 got WA... changed total code still WA and then just changed the limit and got AC and in exchange of 8 WA I got 2nd rank!!!
- Tue Jun 26, 2012 9:46 am
- Forum: Volume 109 (10900-10999)
- Topic: 10976 - Fractions Again?!
- Replies: 11
- Views: 10045
Re: 10976 - Fractions Again?!
Some Previous Input Output clarification:
Input:
3
1
4
15
92
653
589
793
2384
626
4338
3279
502
88
Output:
2
1/3 = 1/12 + 1/4
1/3 = 1/6 + 1/6
1
1/1 = 1/2 + 1/2
3
1/4 = 1/20 + 1/5
1/4 = 1/12 + 1/6
1/4 = 1/8 + 1/8
5
1/15 = 1/240 + 1/16
1/15 = 1/90 + 1/18
1/15 = 1/60 + 1/20
1/15 = 1/40 + 1/24 ...
Input:
3
1
4
15
92
653
589
793
2384
626
4338
3279
502
88
Output:
2
1/3 = 1/12 + 1/4
1/3 = 1/6 + 1/6
1
1/1 = 1/2 + 1/2
3
1/4 = 1/20 + 1/5
1/4 = 1/12 + 1/6
1/4 = 1/8 + 1/8
5
1/15 = 1/240 + 1/16
1/15 = 1/90 + 1/18
1/15 = 1/60 + 1/20
1/15 = 1/40 + 1/24 ...
- Tue Jun 26, 2012 7:46 am
- Forum: Volume 123 (12300-12399)
- Topic: 12377 - Number Coding
- Replies: 1
- Views: 2274
Re: 12377 - Number Coding
One little Spoiler:
43560=2^3×3^2×5^1×11^2 has 4 factors with frequencies 3, 2, 1 and 2, hence coded as 41223. So, if you are backtracking you have to keep in mind that you want a sequence of number such that it is in non-descending order! More clearly, for test case 31223 a valid sequence of ...
43560=2^3×3^2×5^1×11^2 has 4 factors with frequencies 3, 2, 1 and 2, hence coded as 41223. So, if you are backtracking you have to keep in mind that you want a sequence of number such that it is in non-descending order! More clearly, for test case 31223 a valid sequence of ...
- Tue Jun 26, 2012 7:39 am
- Forum: Volume 123 (12300-12399)
- Topic: 12377 - Number Coding
- Replies: 1
- Views: 2274
12377 - Number Coding
Some random input-output:
Input:
Output:
Input:
Code: Select all
7
1987654
31203
31230
313140
3123450
5135798
51357980
Code: Select all
9
0
504
1008
1512
15120
30240
- Sat Jun 23, 2012 10:44 pm
- Forum: Volume 5 (500-599)
- Topic: 598 - Bundling Newspapers
- Replies: 25
- Views: 12034
Re: 598: Bundling eccentric newspapers
Getting WA in this problem. No idea why!
Code link:
Code removed after AC
Made silly mistakes
Thanks in advance!
Code link:
Code removed after AC
Made silly mistakes
Tested nearly all cases available. Plz help.a b means show all subset sizes from a to b, inclusive
Thanks in advance!
- Wed Jun 20, 2012 9:06 am
- Forum: Volume 12 (1200-1299)
- Topic: 1246 - Find Terrorists
- Replies: 3
- Views: 3527
Re: 1246 ---- WA >> Plaese help.....
For Those who are suffering for the lack of higher limit I can guarantee 0<=L<= H<=10000
- Wed Jun 20, 2012 8:59 am
- Forum: Volume 12 (1200-1299)
- Topic: 1200 - A DP Problem
- Replies: 7
- Views: 5470
Re: UVA 1200 clarification
Some test cases:
input:
Output:
input:
Code: Select all
10
0x=0
3x=-9
4=4
2+0x=3+0x
2x+3=0
7x-100=2x+200
x-3=3-x
-x-x-x-x=4
-x+x=2
-x+x=0
Code: Select all
IDENTITY
-3
IDENTITY
IMPOSSIBLE
-2
60
6
-1
IMPOSSIBLE
IDENTITY