Search found 26 matches

by magurmach
Fri May 24, 2013 9:02 am
Forum: Volume 117 (11700-11799)
Topic: 11779 - Lost File
Replies: 3
Views: 2418

Re: 11779 - Lost File

Getting WA. Please post some test cases.

Code Link:
http://ideone.com/Xf2YI6
by magurmach
Sun Mar 24, 2013 9:08 pm
Forum: Volume 125 (12500-12599)
Topic: 12593 - Next Generation Macaw
Replies: 2
Views: 969

Re: RE 12593

Test Case:

Input:

Code: Select all

2
2000000000 100
1 1
Output:

Code: Select all

Case 1: 6678
Case 2: 2
by magurmach
Sun Mar 24, 2013 8:59 pm
Forum: Volume 125 (12500-12599)
Topic: 12593 - Next Generation Macaw
Replies: 2
Views: 969

12593 - Next Generation Macaw

The reason in simple, you are using trying to use more memory than available, use pointer as much as possible!
by magurmach
Sat Sep 08, 2012 8:22 pm
Forum: Volume 12 (1200-1299)
Topic: 1216 - The Bug Sensor Problem
Replies: 7
Views: 5651

Re: 1216 - The Bug Sensor Problem : WA

So so so many thanks to brianfry! I am really thinking to send you some flowers! :wink:
by magurmach
Fri Sep 07, 2012 6:08 am
Forum: Volume 12 (1200-1299)
Topic: 1216 - The Bug Sensor Problem
Replies: 7
Views: 5651

1216 - The Bug Sensor Problem

Please help. Getting WA.

Code Link:
Hided after AC

Thanks in advance!
by magurmach
Wed Jul 11, 2012 8:44 pm
Forum: Bugs and suggestions
Topic: 11297 - Census (BUG in problem description)
Replies: 10
Views: 12251

Re: 11297 - Census (BUG in problem description)

can somebody post some tough test cases? Getting WA
by magurmach
Wed Jul 11, 2012 4:34 pm
Forum: Bugs and suggestions
Topic: 11297 - Census (BUG in problem description)
Replies: 10
Views: 12251

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?
by magurmach
Thu Jun 28, 2012 3:10 pm
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 33666

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
by magurmach
Thu Jun 28, 2012 11:45 am
Forum: Volume 117 (11700-11799)
Topic: 11749 - Poor Trade Advisor
Replies: 10
Views: 3628

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!!!
by magurmach
Tue Jun 26, 2012 9:46 am
Forum: Volume 109 (10900-10999)
Topic: 10976 - Fractions Again?!
Replies: 11
Views: 5627

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 1/15 = 1/...
by magurmach
Tue Jun 26, 2012 7:46 am
Forum: Volume 123 (12300-12399)
Topic: 12377 - Number Coding
Replies: 1
Views: 1842

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 powers...
by magurmach
Tue Jun 26, 2012 7:39 am
Forum: Volume 123 (12300-12399)
Topic: 12377 - Number Coding
Replies: 1
Views: 1842

12377 - Number Coding

Some random input-output:

Input:

Code: Select all

7
1987654
31203
31230
313140
3123450
5135798
51357980
Output:

Code: Select all

9
0
504
1008
1512
15120
30240
by magurmach
Sat Jun 23, 2012 10:44 pm
Forum: Volume 5 (500-599)
Topic: 598 - Bundling Newspapers
Replies: 25
Views: 8757

Re: 598: Bundling eccentric newspapers

Getting WA in this problem. No idea why!
Code link:
Code removed after AC
Made silly mistakes
a b means show all subset sizes from a to b, inclusive
Tested nearly all cases available. Plz help.
Thanks in advance!
by magurmach
Wed Jun 20, 2012 9:06 am
Forum: Volume 12 (1200-1299)
Topic: 1246 - Find Terrorists
Replies: 3
Views: 2649

Re: 1246 ---- WA >> Plaese help.....

For Those who are suffering for the lack of higher limit I can guarantee 0<=L<= H<=10000
by magurmach
Wed Jun 20, 2012 8:59 am
Forum: Volume 12 (1200-1299)
Topic: 1200 - A DP Problem
Replies: 7
Views: 3399

Re: UVA 1200 clarification

Some test cases:
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
Output:

Code: Select all

IDENTITY
-3
IDENTITY
IMPOSSIBLE
-2
60
6
-1
IMPOSSIBLE
IDENTITY

Go to advanced search