Search found 72 matches

by sith
Sat Jun 30, 2012 9:54 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36394

Re: 10062 - Tell Me the Frequencies!

My solution doesn't print last line!
by sith
Fri Jun 29, 2012 6:43 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36394

Re: 10062 - Tell Me the Frequencies!

Hello Why am I getting WA? import java.io.*; import java.util.*; class Main { private static final char NEW_LINE = '\n'; public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1024 * 1024); BufferedWriter writer = new BufferedWriter(new ...
by sith
Thu Jun 28, 2012 7:39 pm
Forum: Volume 112 (11200-11299)
Topic: 11242 - Tour de France
Replies: 5
Views: 2583

11242 - Tour de France

Hello, I've got WA, Why? import java.io.*; import java.util.*; class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1024 * 1024); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out)); // String li...
by sith
Thu Jun 28, 2012 10:10 am
Forum: Volume 102 (10200-10299)
Topic: 10282 - Babelfish
Replies: 48
Views: 19535

Re: 10282 - Babelfish

Thank you. It works
by sith
Thu Jun 28, 2012 10:09 am
Forum: Volume 118 (11800-11899)
Topic: 11860 - Document Analyzer
Replies: 15
Views: 4970

Re: 11860-Document Analyzer

Thank you. I fixed It, but TLE has been happend again :((( import java.io.*; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import java.util.PriorityQueue; class Main { public static final String END = "END"; public static void main(String[] args) { BufferedReader reade...
by sith
Wed Jun 27, 2012 11:53 pm
Forum: Volume 6 (600-699)
Topic: 642 - Word Amalgamation
Replies: 9
Views: 5880

Re: 642 - Word Amalgamation

I know it :)
But I look at statistics and there are
JAVA (379) solved submits
1988 - total succefull submits
my ranking is 1958
So I can be 1988 - 379 = 1609 ranking at least
But I believe that all Java solutions are very similar so how can I get 1609 position?
by sith
Wed Jun 27, 2012 9:25 pm
Forum: Volume 102 (10200-10299)
Topic: 10282 - Babelfish
Replies: 48
Views: 19535

Re: 10282 - Babelfish

Hello

I've got WA, Why? Is it because of my simple implementation of map?

Code: Select all

AC
by sith
Wed Jun 27, 2012 8:58 pm
Forum: Volume 6 (600-699)
Topic: 642 - Word Amalgamation
Replies: 9
Views: 5880

Re: 642 - Word Amalgamation

Hello. I've got AC but my Ranking too small. My solution has been written in Java. I believe that my solution is pretty optimal but why I've got so low rate? Here is my solution: import java.io.*; import java.util.*; class Main { private static final String STARS = "******\n"; private static final S...
by sith
Wed Jun 27, 2012 8:27 pm
Forum: Volume 118 (11800-11899)
Topic: 11860 - Document Analyzer
Replies: 15
Views: 4970

Re: 11860-Document Analyzer

Thank you for your case. It helped me to fix one bug. In your case you have 100 at the and of input - is it typo? But I've still get TLE :(((((((((((((((( import java.io.*; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import java.util.PriorityQueue; class Main { publi...
by sith
Wed Jun 27, 2012 8:13 pm
Forum: Volume 106 (10600-10699)
Topic: 10696 - f91
Replies: 21
Views: 9789

Re: 10696 - f91

Thanks, my stupid mistake :)
by sith
Tue Jun 26, 2012 10:59 pm
Forum: Volume 106 (10600-10699)
Topic: 10696 - f91
Replies: 21
Views: 9789

Re: 10696 - f91

Hello
I've got WA, Why?

Here is my solution

Code: Select all

AC
by sith
Tue Jun 26, 2012 6:09 pm
Forum: Volume 118 (11800-11899)
Topic: 11860 - Document Analyzer
Replies: 15
Views: 4970

Re: 11860-Document Analyzer

It didn't help. I still get TLE Here is updated solution import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.ByteArrayInputStream; import java.io.CharArrayReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.Reader;...
by sith
Mon Jun 25, 2012 6:13 pm
Forum: Volume 120 (12000-12099)
Topic: 12058 - Highway Monitor
Replies: 0
Views: 840

12058 - Highway Monitor

Hello! I've got WA for this problem. Here is my solution. What is wrong? import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.StringReader; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; im...
by sith
Fri Jun 22, 2012 11:02 pm
Forum: Volume 108 (10800-10899)
Topic: 10810 - Ultra-QuickSort
Replies: 36
Views: 20623

Re: 10810 - Ultra-QuickSort

Hello
I've got WA

Why?

Here is my code

Code: Select all

AC
by sith
Fri Jun 22, 2012 12:42 pm
Forum: Volume 118 (11800-11899)
Topic: 11860 - Document Analyzer
Replies: 15
Views: 4970

Re: 11860-Document Analyzer

Hello I've got TLE, but I believe that my solution is pretty optimal. I don't have any string comparision, I read all input data . what is wrong? import java.io.ByteArrayInputStream; import java.io.CharArrayReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; ...

Go to advanced search