Search found 128 matches

by lbv
Thu Mar 14, 2013 12:15 pm
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 31748

Re: 10034 - Freckles

Why wa? I used Kruskal's Mst algo.. I think its presentation error.. Check out the output from your program with the sample case from the problem statement: http://ideone.com/QwUIBZ . It's printing "nan". Chances are this is related to the fact that you don't initialize the sum variable inside your...
by lbv
Wed Mar 13, 2013 12:49 am
Forum: Bugs and suggestions
Topic: Online Judge down.
Replies: 1
Views: 2002

Re: Online Judge down.

From today's messages in uHunt 's chatbox: miguel> We have a serious problem with the server machine, but I hope that iin a couple of hours it will be working. Sorry miguel> Of course you can continuous sending your codes, as the trouble is with the virtual judge machine, but the database is working...
by lbv
Tue Mar 12, 2013 11:36 am
Forum: Volume 103 (10300-10399)
Topic: 10308 - Roads in the North
Replies: 30
Views: 9603

Re: 10308 - Roads in the North

MY CODE ALSO WORKS FOR THE BLANK LINES... NOW WHAT?????/ Hi, Did you test the code you posted? It doesn't print anything for any test case you feed it. Notice that EOF is a macro defined in the standard headers, and it typically is defined as the constant (-1). This means that this: while(!EOF) Tra...
by lbv
Tue Mar 12, 2013 8:59 am
Forum: Volume 118 (11800-11899)
Topic: 11804 - Argentina
Replies: 11
Views: 4350

Re: 11804 - Argentina

I m getting WA. PLz Help :( You may try the following cases: Input 4 racsts 66 31 stratb 69 11 sresbs 65 1 siebar 0 39 strrrc 79 89 cssits 14 56 strbri 58 28 rebeat 80 11 ursoca 51 52 oibeoe 99 83 tr 89 52 s 33 78 u 68 24 erc 90 63 ocbcs 52 17 cttt 86 15 eurco 94 2 rri 19 14 orsabc 72 8 buou 23 21 ...
by lbv
Mon Mar 11, 2013 11:19 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 52414

Re: 10070 - Leap Year or Not Leap Year and …

Why got WA......please help..... Hi, To post code, please use the "code" tags (see the button bar above the message editor). I suggest you start by taking the time to read the previous messages from this thread. There's a lot of noise, but also it's easy to spot the useful messages, with tips and t...
by lbv
Mon Mar 11, 2013 10:57 am
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 30802

Re: 482 Permutation Arrays

i m still getting WA. please help. Since this problem doesn't have an explicit specification for how large n could be, and the size in characters of each line, it's risky to make assumptions and declare fixed-size arrays to hold the data. However, take the time to read the previous comments from th...
by lbv
Sat Mar 09, 2013 4:39 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 76895

Re: 10038 - Jolly Jumpers

(..)I'd very much appreciate some AC output on that. I know I can use (http://www.uvatoolkit.com/problemssolve.php) but it doesn't work for this large input and it says "0 4 2 3" is a jolly jumper for n=4, which I don't think is right. Anyways, I'm getting a runtime error (which might be because I'...
by lbv
Fri Mar 08, 2013 8:02 pm
Forum: Volume 100 (10000-10099)
Topic: 10036 - Divisibility
Replies: 37
Views: 10614

Re: 10036 - Divisibility

Labib wrote:I don't see whats wrong with my code...
Getting WA. plz help, someone?
You may try these cases:

Input

Code: Select all

3
3 13
51 -74 -81
12 18
-83 -53 -76 -54 18 61 55 80 -80 66 55 1
10 27
-10 -52 36 96 -59 97 -74 -63 -44 -5
Output

Code: Select all

Divisible
Divisible
Divisible
by lbv
Thu Mar 07, 2013 11:47 pm
Forum: Volume 103 (10300-10399)
Topic: 10330 - Power Transmission
Replies: 43
Views: 15673

Re: 10330 - Power Transmission

can you tell me why constructing the graph in the way I did (like problem stated regulators (nodes) and links have their own capacity and we calculate min flow by getting min(parent , link between u and parent )) is wrong? I'm not entirely sure about this, but consider this example: 4 41 73 2 81 4 ...
by lbv
Thu Mar 07, 2013 9:22 pm
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 29250

Re: 10041 - Vito's Family

i am extremely sorry for mistakes It's okay, we all make mistakes; the important thing is to learn from them :). but one thing i can not understand why sometimes MEDIAN doesnt work??? :( can you please explain... :) I'm not sure what you mean by "median doesn't work". Are you referring to this prob...
by lbv
Thu Mar 07, 2013 12:06 am
Forum: Volume 103 (10300-10399)
Topic: 10330 - Power Transmission
Replies: 43
Views: 15673

Re: 10330 - Power Transmission

Hi. Can anyone tell me what is wrong with my code, please? I've pass all test cases in the forum and got the correct answer, but still WA. In this line: scanf("%d", ®Capacity[I]); you're using the %d format specifier with a "long long" variable. Use %lld instead. Try to configure your compiler t...
by lbv
Wed Mar 06, 2013 11:00 pm
Forum: Volume 115 (11500-11599)
Topic: 11517 - Exact Change
Replies: 33
Views: 9643

Re: 11517 - Exact Change

Scarecrow wrote:Some one can help me out here please? Getting WA.
You may try these cases:

Input

Code: Select all

2

35
1
75

8
4
41
98
30
79
Output

Code: Select all

75 1
30 1
by lbv
Tue Mar 05, 2013 12:18 pm
Forum: Volume 104 (10400-10499)
Topic: 10469 - To Carry or not to Carry
Replies: 24
Views: 10211

Re: 10469 - To Carry or not to Carry

well im sorry to post new thread in this section but the reason of doing that , that posting a reply in the original thread always don't get much care . I think most experienced users of this forum are happier and more willing to help when people follow the rules, which includes not creating new th...
by lbv
Tue Mar 05, 2013 6:25 am
Forum: Volume 104 (10400-10499)
Topic: 10469 - To Carry or not to Carry
Replies: 24
Views: 10211

Re: 10469 - To Carry or not to Carry

please can anyone tell me whats wrong with this code ? I think you left some "debugging" cout s by accident in this code. I hope you didn't left those in your real submissions, but check that, just in case. Notice how the problem statement is very emphatic about the input numbers being unsigned 32-...
by lbv
Tue Mar 05, 2013 2:57 am
Forum: Volume 102 (10200-10299)
Topic: 10258 - Contest Scoreboard
Replies: 87
Views: 33979

Re: 10258 - Contest Scoreboard

Thanks for your reply, my program output is the same as the expected output, I tried the code you posted in your first message, and the answer I see is: 0 0 0 1 2 145 4 1 83 6 1 126 0 0 0 3 0 0 5 0 0 7 0 0 9 0 0 2 2 221 6 1 126 Are you testing the same code you posted? I also see that your program ...

Go to advanced search