## Search found 19 matches

Thu Sep 16, 2004 6:24 am
Forum: Volume 2 (200-299)
Topic: 299 - Train Swapping
Replies: 81
Views: 12873
Try this input: but it should be Optimal train swapping takes 1 swaps. Optimal train swapping takes 6 swaps. Optimal train swapping takes 1 swaps. Optimal train swapping takes 1 swaps. Optimal train swapping takes 6 swaps. Optimal train swapping takes 1 swaps. Hope this will help. umm no, the first...
Tue Sep 07, 2004 5:18 am
Forum: Volume 3 (300-399)
Topic: 327 - Evaluating Simple C Expressions
Replies: 19
Views: 8655
Yarin wrote:Here's some sample input and my programs (which is AC) output. Maybe it can help?
b++---c+d-c+b
should yield
Expression: b++---c+d-c+b
value = 5
b = 3
c = 2
d = 4
I get value = 4 and my program was AC
Wed Aug 04, 2004 3:15 pm
Forum: Volume 6 (600-699)
Topic: 671 - Spell checker
Replies: 27
Views: 10874
Betty wrote:
UFP2161 wrote:Multiple Input.
anyone care to explain multiple input? i think i missed a couple of problems due to this one.
nm i figured out multiple input, although i dont think i've re submitted this problem yet
Mon Aug 02, 2004 1:05 pm
Forum: Volume 104 (10400-10499)
Topic: 10465 - Homer Simpson
Replies: 75
Views: 24458
I'm not sure what you mean by

gcd(a,b) | c.

I know what a greatest common divisor is, and I presume a and b are the times it takes to eat each type of burger, is c the time it takes overall?

is this a big change i have to make to my code or a simple statement + the gcd function?
Sun Aug 01, 2004 5:37 am
Forum: Volume 6 (600-699)
Topic: 671 - Spell checker
Replies: 27
Views: 10874
UFP2161 wrote:Multiple Input.
anyone care to explain multiple input? i think i missed a couple of problems due to this one.
Sun Aug 01, 2004 5:35 am
Forum: Volume 104 (10400-10499)
Topic: 10465 - Homer Simpson
Replies: 75
Views: 24458

### 10465 Homer Simpsons TLE Help

Hi, I am trying to get better with my DP type problems so i thought i'd have a go with Homer Simpson, my program works and seems to get the right results using a DP solution however i get a TLE when I submit. I tested my program on some high values and yes it does take a while to return them which i...
Fri Jan 23, 2004 5:23 am
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 12100
i have a feeling that the 132 size limit was on the width of the maze not the input.
Wed Jan 14, 2004 4:09 am
Forum: Volume 6 (600-699)
Topic: 671 - Spell checker
Replies: 27
Views: 10874

### 671 Spell Checker WA

Hey just wondering if I can get some help for this problem, I thought it was a nice and easy one, got the sample data/answer out correctly but seem to be getting a WA and I'm not sure why. #include <stdio.h> #include <string.h> #include <string> #include <vector> #include <algorithm> using namespace...
Sat Oct 11, 2003 6:56 am
Forum: Volume 1 (100-199)
Topic: 133 - The Dole Queue
Replies: 42
Views: 6432
hey thanks for those great tests, found my problem really quickly

[cpp]

// break;
[/cpp]
Wed Oct 08, 2003 2:25 pm
Forum: Volume 1 (100-199)
Topic: 133 - The Dole Queue
Replies: 42
Views: 6432
I replaced those lines and still get WA
Tue Oct 07, 2003 3:17 pm
Forum: Volume 1 (100-199)
Topic: 133 - The Dole Queue
Replies: 42
Views: 6432
thanks for you answer, however isn't the program meant to end on input of 0 0 0, therefore it shouldn't be processing lines after that (although I will have to check my program still for that)
Wed Sep 24, 2003 5:50 am
Forum: Volume 1 (100-199)
Topic: 133 - The Dole Queue
Replies: 42
Views: 6432

### 133, I know its meant to be an easy one... but yeah =D

Ok I seem to be getting WA for 133 and I really dont know why. I get the few examples posted on the forum correct, however I did try compare my code to another persons and noticed some differences, but there program seemed to be giving some unusual results for 10 4 3 4 8, 9 5, 3 1, 2 6, 10, 7 5 1 1 ...
Sun Aug 24, 2003 1:48 pm
Forum: Volume 1 (100-199)
Topic: 127 - "Accordian" Patience
Replies: 83
Views: 10763
looks like I'll be using the online submissions from now on, got a nice AC sooo annoying I must have submitted like 10x via email, the same code, and yet it was always a WA

Thanks heaps for both your guys help
Sun Aug 24, 2003 3:41 am
Forum: Volume 1 (100-199)
Topic: 127 - "Accordian" Patience
Replies: 83
Views: 10763
yep still WA =(
Krzysztof Duleba wrote:Still WA? Strange. I've just compared your code with mine on 50 000 test cases, all results were the same.
Thu Aug 21, 2003 2:55 am
Forum: Volume 1 (100-199)
Topic: 127 - "Accordian" Patience
Replies: 83
Views: 10763
Hey thanks, I figured out my problem quickly after getting those files, now I have exact same output as you, although I still seem to be WA. I thought I was being clever by comparing I to I+1 and then I+3 in a loop, but then I realised if I+1 matched I+2 it should be moved before I+3 (if that makes ...