Search found 69 matches

by anacharsis
Sun Jul 19, 2015 7:58 pm
Forum: Volume 4 (400-499)
Topic: 448 - OOPS!
Replies: 18
Views: 4039

Re: 448 - OOPS!

A test case In: B03962FE2F9A887CCBDB87921F70BE 04BB83460587BDD0ED7C62013DB1C1 04D8001003CC37027AAE7B5FF25B8B 2B3A034B9EFC5DE677AA167219E628 95E200083601F7CA8E99C13D64C0B0 3FD66B960D32D6DC03B03FB7AD6E7B 706AC01CCBFD2034356FD4A6415702 B23009D412977420D0145C4EBC6056 E23DDA45150E9D732AE70AD003B008 765EE...
by anacharsis
Wed Jul 15, 2015 5:29 pm
Forum: Volume 8 (800-899)
Topic: 850 - Crypt Kicker II
Replies: 77
Views: 36395

Re: 850 - Crypt Kicker II

It appears that there is no blank line after the last test case.
So, process last case after EOF
by anacharsis
Mon Jul 13, 2015 12:44 am
Forum: Volume 2 (200-299)
Topic: 213 - Message Decoding
Replies: 11
Views: 5746

Re: 213 - Message Decoding

Possibly helpful test cases

In:

Code: Select all

ABCDEFG
0010101000011011011000001010000
AAAAAAA
0010101000011011011000001010000
ABCDEFG
001000000000101001010101000
ABCDEFG
001000
00000
0101001010
10111000
AC out:

Code: Select all

ABCDEFG
AAAAAAA
AAAAAAAAACCCC
AAAAAAAAACCCC
by anacharsis
Fri Jul 10, 2015 8:31 pm
Forum: Volume 3 (300-399)
Topic: 301 - Transportation
Replies: 13
Views: 4872

Re: 301 - Transportation

Some I/O In: 266 6 10 2 5 38 2 5 81 2 3 6 2 5 30 2 3 170 2 3 36 2 3 45 0 3 93 1 4 150 0 5 17 78 5 14 1 2 135 0 4 161 0 2 140 1 4 150 1 3 75 1 2 180 0 3 15 1 2 105 0 4 16 1 2 56 0 2 49 1 3 47 1 4 9 0 4 22 106 6 12 1 5 20 0 4 118 1 4 31 2 5 126 1 4 144 2 3 113 1 4 192 0 3 108 1 5 108 0 5 63 0 3 14 0 4...
by anacharsis
Fri Jun 19, 2015 6:11 pm
Forum: Volume 3 (300-399)
Topic: 339 - SameGame Simulation
Replies: 26
Views: 11625

Re: 339 - SameGame Simulation

Some ( possibly ) helpful test cases Input: 4 4 0 0 0 2 0 1 0 2 0 0 2 1 2 2 2 0 3 4 3 1 3 1 1 1 2 3 1 4 4 1 3 1 0 0 5 4 2 2 1 1 1 1 0 1 2 1 2 1 2 2 2 2 0 0 0 2 3 2 3 4 4 4 3 2 4 2 1 3 2 3 5 1 4 2 1 1 0 0 4 5 2 0 2 0 1 1 0 2 1 0 2 0 1 1 2 0 2 2 0 2 1 1 3 1 3 2 3 3 2 5 2 5 4 3 2 4 2 5 1 3 0 0 4 4 0 1 ...
by anacharsis
Thu Jun 11, 2015 8:57 pm
Forum: Volume 10 (1000-1099)
Topic: 1064 - Network
Replies: 6
Views: 5414

Re: 1064 - Network

More I/O In: 6 86 44 22 56 22 20 46 6 8 8 6 30 31 3 16 17 1 3 5 6 23 25 1 12 13 3 3 6 2 6 7 5 18 20 6 19 22 2 8 9 3 28 29 6 32 33 5 10 10 3 11 12 6 41 42 1 1 2 2 13 14 4 1 4 3 42 45 3 54 56 2 18 19 5 13 14 3 13 15 6 11 11 4 16 19 1 30 33 3 30 30 3 37 37 6 9 10 5 1 2 2 5 5 6 28 29 1 11 11 6 43 45 2 2...
by anacharsis
Thu Jun 11, 2015 8:56 pm
Forum: Volume 10 (1000-1099)
Topic: 1064 - Network
Replies: 6
Views: 5414

Re: 1064 - Network

Some I/O In: 3 9 5 5 5 3 5 5 1 5 5 1 1 2 2 2 5 3 4 4 3 2 3 3 1 1 1 3 4 2 1 1 3 7 5 5 5 1 1 1 2 1 1 1 2 5 3 5 5 3 1 4 2 5 5 2 2 4 3 8 5 5 5 3 3 5 2 1 3 3 2 2 2 4 5 1 1 2 1 4 5 3 1 1 1 3 3 3 8 5 5 5 3 3 3 1 1 4 1 5 5 2 5 5 3 4 5 2 1 1 2 2 4 3 1 2 3 7 5 5 5 2 1 3 1 4 4 1 1 3 2 4 5 1 5 5 3 5 5 3 1 4 3 8...
by anacharsis
Thu Jun 11, 2015 3:49 pm
Forum: Volume 5 (500-599)
Topic: 594 - One Little, Two Little, Three Little Endians
Replies: 46
Views: 13381

Re: 594 - One Little, Two Little, Three Little Endians

Use the UVA toolkit to test this one.
The solution at UDebug gives nonsensical answers for lots of the negative numbers that they have in their 'Random Input'
Also, save yourself some trouble and check -2147483648
by anacharsis
Sun Jun 07, 2015 6:30 pm
Forum: Volume 120 (12000-12099)
Topic: 12049 - Just Prune The List
Replies: 14
Views: 4150

Re: 12049 - Just Prune The List

This one is a trail of tears if you are doing it in java. And it's only because there is a lot of input that takes a while to parse. I appended an optimized input reader class to help level the playing field with the c/c++ people. This input reader can read the test data in about 0.6 seconds, which ...
by anacharsis
Thu May 28, 2015 6:02 pm
Forum: Volume 119 (11900-11999)
Topic: 11975 - Tele-loto
Replies: 1
Views: 3163

Re: 11975 - Tele-loto

A few helpful clarifications: 1) Midline means only the midline ( and not any of the other 4 rows ) 2) Diagonals means both diagonals ( not just one ) 3) One player getting "table" does not end the game; if you have 5 players, literally all 5 can get the prize for table, even if they all do it on di...
by anacharsis
Tue May 05, 2015 7:36 pm
Forum: Volume 8 (800-899)
Topic: 860 - Entropy Text Analyzer
Replies: 13
Views: 7891

Re: 860 - Entropy Text Analyzer

If you are going to do this in Java, make sure you set up your stream reader with the ISO-8859-1 charset. Sample using a buffered reader: private static BufferedReader br; static String readln() throws IOException { if ( br == null ) { br = new BufferedReader( new InputStreamReader( System.in, "ISO-...
by anacharsis
Mon Apr 27, 2015 8:47 pm
Forum: Volume 3 (300-399)
Topic: 394 - Mapmaker
Replies: 22
Views: 6388

Re: 394 - Mapmaker

This works fine for all of the sample inputs I can find. It is throwing a runtime exception when I send it to the judge, though. Anyone have any clue as to why? import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.H...
by anacharsis
Thu Apr 09, 2015 4:12 pm
Forum: Volume 7 (700-799)
Topic: 732 - Anagrams by Stack
Replies: 17
Views: 11519

Re: 732 - Anagrams by Stack

This is one where the UDebug output differs from AC judge output. The UDebug solution ignores empty lines entirely; you can't do that - if you do, you'll WA Input: d_g g_d f f aaaabbb ababaab UDebug Output: [ i i i o o o ] [ i o ] [ i i i i o i o o i o o o i o i i i o i i o o i o o o i o i i o i i i...
by anacharsis
Sat Apr 04, 2015 3:04 am
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 43360

Re: 11340 - Newspaper

Make life easier for yourself and remember to actually process newline characters.
They might pay for them after all... :)
by anacharsis
Wed Mar 25, 2015 3:53 pm
Forum: Volume 1 (100-199)
Topic: 189 - Pascal Program Lengths
Replies: 12
Views: 2428

Re: 189 - Pascal Program Lengths

So, this is actually Algol, but it's close enough to Pascal that you can use your Pascal unit counter/lexer on it. It helped me get AC Input: begin comment Algol program print the primes less than 1000 using the sieve method.; Boolean array sieve[2:1000]; integer p, count; comment Eliminate the mult...

Go to advanced search