## Search found 26 matches

Sat Oct 24, 2009 8:45 pm
Forum: Volume 114 (11400-11499)
Topic: 11479 - Is this the easiest problem?
Replies: 48
Views: 17723

### Re: 11479 pls pls pls help

Try the following input:
Input

Code: Select all

``````1
3 3 3``````
Output

Code: Select all

``Case 1: Equilateral``

Code: Select all

``if (a == b == c)``
is not equal to

Code: Select all

``if (a == b && b == c)``
Hope it helps.
Sun Oct 04, 2009 4:02 pm
Forum: Volume 116 (11600-11699)
Topic: 11608 - No Problem
Replies: 25
Views: 9954

### Re: 11608 - No Problem

Hi. if (i == 0) if(sum >= y[0]) sum -= (tmp - y[0]); else if(sum >= y[i-1]) sum-= (p[i-2] - y[i-1]); The following code is the same as above: if (i == 0) { if(sum >= y[0]) { sum -= (tmp - y[0]); } else if(sum >= y[i-1]) { sum-= (p[i-2] - y[i-1]); } } Hope it helps.
Wed Sep 09, 2009 5:26 pm
Forum: Volume 103 (10300-10399)
Topic: 10385 - Duathlon
Replies: 16
Views: 7148

### Re: 10385 - Duathlon

Try using "%.0lf" instead of "%d".

Code: Select all

``````printf("The cheater can win by %.0lf seconds with r = %.2lfkm and k = %.2lfkm.\n",
(f(left)),left,total-left);``````
Mon Sep 07, 2009 9:56 pm
Forum: Volume 103 (10300-10399)
Topic: 10385 - Duathlon
Replies: 16
Views: 7148

### Re: 10385 - Duathlon

Hi serur. I checked with assert that n is greater than 1. Input: 7 2 3 4 4 3 100 9 25 20 40 12 37 23 9 49 17 19 33 5 67 3 34 11 21 30 My output: The cheater can win by 2099 seconds with r = 7.00km and k = 0.00km. The cheater can win by 1270 seconds with r = 21.53km and k = 78.47km. Hope it helps.
Thu Jun 11, 2009 8:08 pm
Forum: Volume 106 (10600-10699)
Topic: 10654 - The Uxuhul Voting System
Replies: 2
Views: 3038

### Re: 10654 - The Uxuhul Voting System

Input:

Code: Select all

``````2
4
8 7 6 5 4 3 2 1
8 6 3 1 2 4 5 7
8 3 6 5 1 2 7 4
1 2 3 4 5 6 7 8
1
1 2 3 4 5 6 7 8``````
Output:

Code: Select all

``````NYY
NNY``````
Mon Apr 13, 2009 2:52 pm
Forum: Volume 104 (10400-10499)
Topic: 10412 - Big Big Trees
Replies: 15
Views: 8923

### Re: 10412 - Big Big Trees

Finally, I got AC.
Input:

Code: Select all

``````1
3 5 100
3 0 0 1
2 0 0
3 0 0 1``````
AC output:

Code: Select all

``0``
To bobi1978.
Example:
1
2 7 5
1 3
4 3 3 2 1

is the output
6
or
4
My output is 6.
Thu Feb 19, 2009 9:06 pm
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 13573

### Re: 120 Still WA. If you get AC, please try this input.

Hi, vahid sanei. My output: 8 4 6 7 5 2 1 4 2 5 3 4 5 0 1 2 3 5 4 2 1 2 3 0 7 3 5 4 8 9 10 1 13 3 2 8 5 8 6 0 2 0 33 21 45 2 0 33 55 0 1 0 2 1 1 0 1 2 0 56 12 48 1 2 0 75 2 1 44 53 84 21 46 82 43 99 49 89 7 9 5 1 13 2 11 3 6 4 10 5 14 6 7 10 8 12 9 11 14 12 14 0 1 2 3 6 7 8 4 5 3 1 4 6 0 1 3 19 4 95...
Thu Feb 19, 2009 8:13 pm
Forum: Volume 115 (11500-11599)
Topic: 11575 - Zerg Rush!!!
Replies: 2
Views: 1334

### Re: 11575 - Zerg Rush!!!

Finally, I got AC. AC output: 1... .1.. ..1. ...2 .... .... .112 .... ..... ....1 ....1 ....2 ..... .......... .......... ....1..... ....1..... ....2..... ....2..... .......... .......... .......... .......... .......... ....1111.. ......1.1. ........1. 1......1.1 .111....1. 1111...... ..1.1..... .....
Tue Feb 17, 2009 7:06 pm
Forum: Volume 115 (11500-11599)
Topic: 11575 - Zerg Rush!!!
Replies: 2
Views: 1334

### 11575 - Zerg Rush!!!

I keep getting WA(7.3sec). What's the output for the input: 4 0 0 0 0 1... .1.. ..1. ...2 1 4 0 0 0 0 .... .... 11.2 .... 1 5 0 0 0 0 ....1 ....1 ..... ..... ....2 1 10 0 0 0 0 .......... ....1..... ....1..... ....1..... ....2..... ....2..... ....2..... .......... .......... .......... 9 10 2 3 3 1 ...
Thu Feb 05, 2009 11:52 am
Forum: Volume 6 (600-699)
Topic: 650 - Bowl
Replies: 5
Views: 3937

### Re: 650 - Bowl

Hi, Lyaxe. Try the following cases. Input: Homer 0 Homer Homer 1 1 Homer 10 10 Homer 10 0 9 0 8 7 6 5 4 3 2 1 0 Homer 5 5 5 0 5 0 5 5 5 5 Homer 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 0 10 0 Homer 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 9 0 Homer 10 10 10 10 10 10 10 10 1...
Thu Jan 15, 2009 4:18 am
Forum: Volume 104 (10400-10499)
Topic: 10412 - Big Big Trees
Replies: 15
Views: 8923

### Re: 10412 - Big Big Trees

I keep getting WA. What's the output for the input:

Code: Select all

``````1
3 5 100
3 0 0 1
2 0 0
3 0 0 1
``````
Fri Jan 02, 2009 11:43 pm
Forum: Volume 115 (11500-11599)
Topic: 11568 - Pincer Attack!!
Replies: 5
Views: 1222

### Re: 11568 - Pincer Attack!!

My AC output:

Code: Select all

``````ENNEE
You can't escape...
NNWXNNWSWSW
NNWXNNWSWSW
NWNNWWSW
NXWNNWWSW
NNWXNNWSWSW
``````
Sat Dec 06, 2008 7:09 pm
Forum: Volume 106 (10600-10699)
Topic: 10644 - Floor Tiles
Replies: 25
Views: 11364

### Re: 10644 - Floor Tiles

Thank you, jurajz.
Tue Nov 25, 2008 7:10 pm
Forum: Volume 106 (10600-10699)
Topic: 10644 - Floor Tiles
Replies: 25
Views: 11364

### Re: 10644 - Floor Tiles

Thank you, jurajz.

What's the output for the input:

Code: Select all

``````2
2 900 2 900
2 999 2 999``````
My output:

Code: Select all

``````448503
552782``````
Sat Nov 22, 2008 9:23 am
Forum: Bugs and suggestions
Topic: 11107 - Life Forms
Replies: 0
Views: 1732

### 11107 - Life Forms

Judge's input is poor.

Input:

Code: Select all

``````3
xxx
xxx
y
0``````
I got AC the following output:

Code: Select all

``x``
But this is incorrect. Correct output should be:

Code: Select all

``xxx``
Sorry for my poor english.