Search found 8 matches

by allenlam
Fri Sep 04, 2009 6:38 pm
Forum: Volume 112 (11200-11299)
Topic: 11222 - Only I did it!
Replies: 14
Views: 6941

Re: 11222 - Only I did it!

INPUT

Code: Select all

2

0
1 8
1 8

2 1 3
2 1 3
1 1
For the above input, what's the correct output?
by allenlam
Wed Jul 08, 2009 6:04 pm
Forum: Volume 114 (11400-11499)
Topic: 11483 - Code Creator
Replies: 16
Views: 6333

Re: 11483 - Code Creator

Use regex to handle the escape chars,
the problem becomes a piece of cake.

Accepted. Funny to create C by Java.
by allenlam
Tue Jun 30, 2009 6:06 am
Forum: Volume 114 (11400-11499)
Topic: 11455 - Behold my quadrangle
Replies: 21
Views: 11012

Re: 11455 - Behold My Quadrangle

After a few times of runtime error, I think the testing data of this problem is badly formatted, and the description is badly written. Don't trust the description and the sample input format. When it says the first line contains something it can mean the first line is blank. When it says there is a ...
by allenlam
Wed Jun 24, 2009 10:07 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 19570

Re: 103 - Stacking Boxes

For case 4, my output is 3 1 2 4 It can be confirmed easily by manual checking. I think 1 9 4 is also correct Here is my version of output: 1 1 5 3 1 2 4 5 4 7 2 5 6 3 1 2 4 5 5 1 2 3 4 1 1 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 1 28 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 2...
by allenlam
Wed Jun 17, 2009 4:49 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36412

Re: 10062 - Tips to solve this problem

How to solve 1. do a character count for each existing chars in the input string. Store the counting result in a map-like structure, mapping each char to its count. You get an array of the map structure. 2. sort the array by the char, in descending order. 3. sort the array by the count, in ascendin...
by allenlam
Tue Jun 16, 2009 8:30 am
Forum: Bugs and suggestions
Topic: Special Corrector Problem - Always PE
Replies: 10
Views: 4859

Re: Special Corrector Problem - Always PE

Does 11602 also has a special judge? I get PE with unknown reasons in this problem.
by allenlam
Mon Jun 15, 2009 7:59 pm
Forum: Volume 116 (11600-11699)
Topic: 11602 - SMS for Blind
Replies: 3
Views: 1125

Re: 11602 - SMS for Blind - Why PE?

It is an interesting problem but the judge's behavior is too strange. I've tried out all possible newline/no-newline options but it is always PE. I write it in Java and all outputs are done by System.out.println(keyOrder); It seems there is no tricky output requirement. Does PE mean something unrela...
by allenlam
Tue Jun 09, 2009 6:54 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22194

Re: 406 - Prime Cuts

some test cases 1 1 2 1 3 2 4 3 5 2 6 3 7 2 8 2 9 2 10 9 11 9 12 4 13 4 14 3 15 8 16 13 17 10 18 16 19 14 20 17 21 20 22 8 23 9 24 15 25 2 26 3 27 7 28 1 29 14 30 10 31 10 32 24 33 32 34 15 35 18 36 4 37 11 38 34 39 18 40 27 41 35 42 33 43 32 44 10 45 12 46 43 47 40 48 21 49 22 50 15 output 1 1: 1 2...

Go to advanced search