Search found 128 matches

by lbv
Tue May 13, 2014 8:10 pm
Forum: Volume 8 (800-899)
Topic: 820 - Internet Bandwidth
Replies: 43
Views: 20668

Re: 820 - Internet Bandwidth

Can anybody tell me why im gettin Runtime Error? It seems like you need to clear your p map at the end of each test case, otherwise values from previous cases can end up causing an infinite recursion inside augmentPath . Try for example: Input 4 1 4 11 3 2 695 2 1 174 3 4 687 4 3 162 3 1 625 3 2 33...
by lbv
Fri May 09, 2014 7:55 pm
Forum: Volume 9 (900-999)
Topic: 914 - Jumping Champion
Replies: 37
Views: 17416

Re: 914 - Jumping Champion WA

I am getting WA from this code...i have tried multiple inputs from different sites all have give me correct ans but i don't know why it is giving me WA in final submission. A good idea is to always try test cases that go to the lower and upper boundaries specified in the problem statement. For exam...
by lbv
Wed May 07, 2014 2:08 am
Forum: Volume 121 (12100-12199)
Topic: 12150 - Pole Position
Replies: 6
Views: 2148

Re: Problem UVA 12150 - Pole Position get WA! plz help

cse dipto wrote:code omitted
You may try these cases:

Input

Code: Select all

3
20 0
10 2
30 0
5
47 4
64 1
81 1
58 3
52 -4
0
Output

Code: Select all

-1
-1
by lbv
Sun May 04, 2014 7:52 pm
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 20976

Re: 147 - Dollars

Please help me. Don't know why get WA. %17I64d is not a valid format specifier for gcc/g++. You may use %17lld instead. Since the problem says each test case will be valid, I get the same output but invalid cases. Does it matter? I'm afraid I don't understand what you're trying to say here. Are you...
by lbv
Sun May 04, 2014 7:40 pm
Forum: Volume 4 (400-499)
Topic: 481 - What Goes Up
Replies: 82
Views: 13814

Re: 481 - What Goes UP (Run Time Error)

Why is mine RTE? This is what I see when I try to compile your code with g++ and no special flags: p.cpp: In function ‘int main()’: p.cpp:36:15: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] v.push_back(vector < int > { ^ And then, immediate...
by lbv
Sun May 04, 2014 1:35 am
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 22610

Re: 11371 - Number Theory for Newbies

getting WA.please help.thank you That looks like AC code. However, if you submitted your code as ANSI C, note that the atoll function will not be available. If you have access to a gcc compiler, try compiling your programs using the same flags used by the UVa server, which for ANSI C are: "-lm -lcr...
by lbv
Tue Apr 22, 2014 7:09 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 35824

Re: 116 WA plz help

sady wrote::oops: I have tried all test case in the forum bt still WA. plz plz plz anyone help
Try:

Input

Code: Select all

10 2
9 9
9 9
9 9
9 9
9 9
9 9
9 9
9 9
9 9
1 1
Output

Code: Select all

10 10
2
by lbv
Wed Apr 16, 2014 11:34 pm
Forum: Volume 4 (400-499)
Topic: 484 - The Department of Redundancy Department
Replies: 103
Views: 8543

Re: 484-WA..PLZ help me

(code omitted) It's never a good idea to make assumptions about things that are not explicitly stated in the problem statement. In this problem, for example, it is not the case that the input contains more than one test case, and that the numbers of each test case are given on a single line. I can ...
by lbv
Fri Apr 11, 2014 4:41 am
Forum: Volume 112 (11200-11299)
Topic: 11235 - Frequent values
Replies: 35
Views: 15897

Re: 11235 - Frequent Values

Got TLE! Did i do something wrong? Or is my code to slow? When I tried your program locally, it resulted in a crash. After reading a little bit of your code, I noticed there are some memory corruption problems. For example, think of what happens when you access numeros and i is zero. Other than tha...
by lbv
Thu Apr 10, 2014 5:25 pm
Forum: Volume 4 (400-499)
Topic: 462 - Bridge Hand Evaluator
Replies: 32
Views: 9944

Re: 462 - Bridge Hand Evaluator

Hi all. I have carefully crafted and refined my algorithm many times. But I can''t seem to see where the error lies. I just keep getting WA. You may try these cases: Input AH QS 3S 7C 3C KC 8H AD AS 4D 5S 6S 3H 3S 2D JS AH 7C JH KH 4C TH TS AS TD 4D JD KC 7C QD 3D 8C 5D 2S AS QC JH 2C KD Output BID...
by lbv
Thu Apr 10, 2014 8:10 am
Forum: Volume 7 (700-799)
Topic: 793 - Network Connections
Replies: 102
Views: 30892

Re: 793 - Network Connections

Chuckrute wrote:Can someone tell me why i got WA?
The output must end in a newline (but not a blank line).
by lbv
Thu Apr 10, 2014 7:50 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 43578

Re: 623 - 500!

when i use java , verdict Runtime Error (RE)...why? :( A few things for you to consider: As mentioned in previous posts, Java programs for the UVa judge must have a class named Main (notice the capital M). Have you tried your program with an actual input file? When I tested your program locally it ...
by lbv
Wed Apr 09, 2014 5:20 pm
Forum: Volume 100 (10000-10099)
Topic: 10048 - Audiophobia
Replies: 27
Views: 9580

Re: 10048 - Audiophobia

I have tried all the test cases but still wrong answer . plz help . Here is my code . I have used prims algorithm . Have you really tried all test cases given here in the forums? The post just above yours, for example, contains multiple instances of cases where your code prints different answers. H...
by lbv
Mon Apr 07, 2014 7:11 am
Forum: Volume 10 (1000-1099)
Topic: 1061 - Consanguine Calculations
Replies: 10
Views: 3919

Re: 1061 - Consanguine Calculations

Hi, I keep getting a WA for this problem. (..) Even though the problem mentions that the order of blood type within a curly brace does not matter, I have a feeling that the judge might actually be checking some kind of ordering of blood type. I understand the frustration, but it's extremely rare th...
by lbv
Mon Mar 18, 2013 3:23 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78684

Re: 10038 - Jolly Jumpers

WhY WA......?.... I have tested so many inputs from here..... Can anyone give me some new..... In my machine your program doesn't print the correct answers for the sample test cases, but you may see something different in your own system because there's a bug related to uninitialized positions of m...

Go to advanced search