## Search found 139 matches

Thu Jul 28, 2016 6:13 pm
Forum: Volume 4 (400-499)
Topic: 434 - Matty's Blocks
Replies: 13
Views: 3608

### Re: 434 - Matty's Blocks

For minimum blocks, make sure the blocks viewed from front and right are same, and make the cross point shared by front view and right view. For example: 7 3 0 2 3 5 8 1 8 1 4 1 1 0 6 8 pairs to 8, 1 pairs to 1, 0 pairs to 0 and remains have no pair, so they should be placed singlely, so total minim...
Mon Jul 25, 2016 6:32 pm
Forum: Volume 4 (400-499)
Topic: 453 - Intersecting Circles
Replies: 84
Views: 15141

### Re: 453 - Intersecting Circles

Another problem tricky float point number involved.
Tue Jul 19, 2016 5:13 pm
Forum: Volume 4 (400-499)
Topic: 413 - Up and Down Sequences
Replies: 22
Views: 5367

### Re: 413 - Up and Down Sequences

The problem statement is not so clear.
Tue Jul 19, 2016 3:27 pm
Forum: Bugs and suggestions
Topic: 425 - Enigmatic Encryption
Replies: 6
Views: 5098

### Re: 425 - Enigmatic Encryption

An interesting problem!
Mon Jul 18, 2016 11:56 am
Forum: Volume 4 (400-499)
Topic: 416 - LED Test
Replies: 34
Views: 10009

### Re: 416 - LED Test

The test data on uDebug end with end of line instead of 0, beware of it.
Mon Jul 18, 2016 5:23 am
Forum: Volume 4 (400-499)
Topic: 402 - M*A*S*H
Replies: 56
Views: 13557

### Re: 402 - M*A*S*H

The test data on uDebug: 31 9 5 8 2 1 7 7 11 3 6 5 4 9 10 5 2 1 5 3 9 7 16 3 11 2 7 3 4 8 5 10 7 8 3 7 4 2 3 9 10 2 5 3 25 1 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11 10 11 3 5 4 3 2 9 6 10 10 6 2 7 3 4 7 4 5 3 2 4 3 2 3 10 11 3 5 4 3 2 9 6 10 10 6 2 7 3 4 7 4 5 3 2 4 10 11 3 5 4 3 2 9 6 10 10...
Sun Jul 17, 2016 5:10 am
Forum: Volume 4 (400-499)
Topic: 474 - Heads / Tails Probability
Replies: 50
Views: 10954

### Re: 474 - Heads / Tails Probability

The judge of this problem need to fix, otherwise one would hard to get AC on first try.
Fri Jul 15, 2016 1:57 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 21901

### Re: 444 - Encoder and Decoder

The test data on uDebug contains:

Code: Select all

``````One is to write an encoder-decoder program here.
``````
but the problem statement said that '-' is not a valid character, you should ignore input like this.
Thu Jul 14, 2016 11:02 am
Forum: Volume 4 (400-499)
Topic: 488-Triangle wave (continuously getting presentation error)
Replies: 1
Views: 937

### Re: 488-Triangle wave (continuously getting presentation error)

(1)The outputs of two consecutive cases will be separated by a blank line.
You print a blank line before first test case.
(2) and there is a blank line after each separate waveform, excluding the last one.
Check you output again, you should get AC.
Sun Jul 10, 2016 5:59 am
Forum: Volume 3 (300-399)
Topic: 304 - Department
Replies: 2
Views: 3636

### Re: 304 - Department

For checking whether you use tow queue on elevatoror not. Input: C 15:00:00 0201 15 0301 20 0 D 15:00:00 0205 10 0 . ACed putput: C 15:00:00 15:00:30 Entry 15:00:30 15:01:00 Stay in elevator 15:01:00 15:01:10 Transfer from elevator to room 0201 15:01:10 15:01:25 Stay in room 0201 15:01:25 15:01:35 T...
Fri Jul 08, 2016 3:23 pm
Forum: Volume 3 (300-399)
Topic: 370 - Bingo
Replies: 8
Views: 4348

### Re: 370 - Bingo

The solution on uDebug seems have some problem, it couldn't get right output for input:

Code: Select all

``````1 1 1 1 1
1 0 0 0 1
1 1 1 1 1
1 0 0 0 1
1 1 1 1 1
1
0
``````
the output of uDebug solution:

Code: Select all

``````No BINGO on this card.

``````
it is wrong obviously.
Fri Jul 08, 2016 12:04 pm
Forum: Volume 3 (300-399)
Topic: 365 - Welfare Reform
Replies: 9
Views: 4111

### Re: 365 - Welfare Reform

For guys who want to solve this problem: (1)family name contain none space. (2)there are test data which some children's age are same but with difrrent birthday, you should choose the "max" birthday as youngest, for example, there are three children with birthday(in real life, it seems impossible fo...
Thu Jul 07, 2016 3:38 am
Forum: Volume 3 (300-399)
Topic: 335 - Processing MX Records
Replies: 12
Views: 5313

### Re: 335 - Processing MX Records

I dont't think so, my AC solution assumes that there is no other commands rather than U, D, A, X.
Tue Jul 05, 2016 2:47 am
Forum: Volume 3 (300-399)
Topic: 346 - Getting Chorded
Replies: 19
Views: 4552

### Re: 346 - Getting Chorded

Thu Jun 30, 2016 1:03 pm
Forum: Volume 3 (300-399)
Topic: 325 - Identifying Legal Pascal Real Constants
Replies: 63
Views: 15032

### Re: 325 - Identifying Legal Pascal Real Constants

For WA, try input:

Code: Select all

``````000040040.001200E-000000123
0e-0
*
``````
output:

Code: Select all

``````000040040.001200E-000000123 is legal.
0e-0 is legal.
``````
by the way, trim the leading and tailing space(Maybe the input of judge contain non tailing space). Use regex for this problem is easy.