There's an O(n log n) algorithm for this.
Super-fast times are usually I/O optimization or tables or something like that. Don't worry about it.
Search found 43 matches
- Tue Nov 16, 2004 10:01 pm
- Forum: Volume 4 (400-499)
- Topic: 481 - What Goes Up
- Replies: 82
- Views: 27905
- Tue Nov 16, 2004 9:55 pm
- Forum: Off topic (General chit-chat)
- Topic: What kinds of problems do you solve most ?
- Replies: 25
- Views: 81426
- Tue Nov 16, 2004 9:54 pm
- Forum: Other words
- Topic: Data Structures and Algorithms in Java - Any good?
- Replies: 2
- Views: 1566
- Tue Nov 16, 2004 9:51 pm
- Forum: Java
- Topic: Anyone knows how to speed up JAVA a little bit?
- Replies: 9
- Views: 9671
- Tue Nov 16, 2004 9:49 pm
- Forum: C++
- Topic: GCC in windows
- Replies: 3
- Views: 2725
- Mon Nov 01, 2004 10:34 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10730 - Antiarithmetic?
- Replies: 21
- Views: 11293
- Mon Nov 01, 2004 10:13 pm
- Forum: Off topic (General chit-chat)
- Topic: ICPC Java
- Replies: 4
- Views: 2755
In Rocky Moutain Regionals, we had the full API from a link on the desktop, and there was a FAQ entry giving a full solution to one of the practice problems in Java, so that you could see how to do the File I/O.
It took us longer to get a test Java BigInteger sample to work at the practice than to ...
It took us longer to get a test Java BigInteger sample to work at the practice than to ...
- Wed Sep 08, 2004 4:38 am
- Forum: Volume 4 (400-499)
- Topic: 466 - Mirror, Mirror
- Replies: 13
- Views: 5423
I don't believe you. I've done the same thing, where I was convinced the input was wrong, that all I had to do was change one line in my input routine to go from WA to AC; but I contacted the people who run the judge, and they checked, and the input was fine.
If there really is a problem, email the ...
If there really is a problem, email the ...
- Tue Sep 07, 2004 11:31 pm
- Forum: Volume 4 (400-499)
- Topic: 466 - Mirror, Mirror
- Replies: 13
- Views: 5423
I highly doubt that the input is incorrect. If you email problemset@acm.uva.es, they can check it for you, but at least 93% of all such claims are absurdly false.
- Tue Sep 07, 2004 11:27 pm
- Forum: Volume 4 (400-499)
- Topic: 481 - What Goes Up
- Replies: 82
- Views: 27905
- Thu Sep 02, 2004 6:23 pm
- Forum: Volume 2 (200-299)
- Topic: 229 - Scanner
- Replies: 11
- Views: 6817
- Wed Sep 01, 2004 7:00 pm
- Forum: Volume 7 (700-799)
- Topic: 726 - Decode
- Replies: 36
- Views: 13946
- Wed Aug 25, 2004 10:35 pm
- Forum: Algorithms
- Topic: Problems understanding dynamic programming
- Replies: 6
- Views: 2919
- Wed Aug 25, 2004 8:46 pm
- Forum: Algorithms
- Topic: Problems understanding dynamic programming
- Replies: 6
- Views: 2919
- Wed Aug 25, 2004 3:18 am
- Forum: Other words
- Topic: Search the board ...
- Replies: 4
- Views: 2779