Search found 72 matches

by sith
Thu Jun 14, 2018 10:28 pm
Forum: Volume 8 (800-899)
Topic: 860 - Entropy Text Analyzer
Replies: 13
Views: 7487

Re: 860 - Entropy Text Analyzer

It is bad. How should I figure out the encoding requirement from problem description? It should be clear from the problem statement.
by sith
Sat Jun 02, 2018 8:03 am
Forum: Volume 130 (13000-13099)
Topic: 13131 - Divisors [Time Limit]
Replies: 0
Views: 422

13131 - Divisors [Time Limit]

I must ask this question in the Volume 130 forum as Volume 131 is empty and by some reason I don't have permissions to start new topic there. So, I managed to write the solution that should be correct but I got TE. import java.util.HashSet; import java.util.Scanner; import java.util.Set; class Main ...
by sith
Mon Sep 04, 2017 5:44 pm
Forum: Volume 109 (10900-10999)
Topic: 10901 - Ferry Loading III
Replies: 54
Views: 22287

Re: 10901 - Ferry Loading III

Hi

could somebody explain why this input

Code: Select all

1
2 2 1
3 right
produces result

Code: Select all

7
If ferry starts from the left bench, it should stay there as there are no cars on either of banks until 3. after it it will take 1 to get to the right bank and 1 to travel back. So it should be 5.

Why is it 7?
by sith
Sat Aug 31, 2013 8:52 am
Forum: Volume 103 (10300-10399)
Topic: 10360 - Rat Attack
Replies: 19
Views: 44196

Re: 10360 - Rat Attack

Hi I've got WA, My solution gives correct answers for posted examples. Could somebody help me, why am I getting WA, for which input my solution gives wrong answer import java.io.*; import java.util.*; class Main { public static final XComparator X_COMPARATOR = new XComparator(); public static final ...
by sith
Thu Jun 06, 2013 7:47 am
Forum: Volume 126 (12600-12699)
Topic: 12608 - Garbage Collection
Replies: 2
Views: 10469

12608 - Garbage Collection

Hi guys i have a problem with 12608 - Garbage Collection My solution works for given inputs but I got WA? Could anybody give some suggestions or input? import java.io.*; import java.util.Scanner; class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new Inp...
by sith
Tue Dec 25, 2012 8:42 pm
Forum: Volume 116 (11600-11699)
Topic: 11631 - Dark roads
Replies: 11
Views: 4573

11631 - Dark roads. WA!!!

Hi, I believe I chose right approach, but I got WA, Could anybody help with advice or provide some input import java.io.*; import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System....
by sith
Mon Dec 24, 2012 2:44 am
Forum: Volume 114 (11400-11499)
Topic: 11413 - Fill the Containers
Replies: 13
Views: 6361

Re: 11413 - Fill the Containers

I meant two :)

Somebody posted input example

Code: Select all

    3 100
    4 78 9
and answer is 82.
Why? I think if we have a lot of containers we can set one container per each vessel, so the answer has to be 78?
Why 82?
by sith
Sun Dec 23, 2012 9:11 pm
Forum: Volume 122 (12200-12299)
Topic: 12289 - One-Two-Three
Replies: 12
Views: 9652

Re: Why wa

Thank you, small mistake :)

Got AC
by sith
Sun Dec 23, 2012 8:59 am
Forum: Volume 114 (11400-11499)
Topic: 11413 - Fill the Containers
Replies: 13
Views: 6361

Re: 11413 - Fill the Containers

Hi could anybody clarify some issues with this problem Problem says Whenever milk from a vessel is poured into a container, the milk in the vessel must be completely poured into that container only. That is milk from same vessel can not be poured into different containers. So, this is "one container...
by sith
Sun Dec 09, 2012 8:47 pm
Forum: Volume 122 (12200-12299)
Topic: 12289 - One-Two-Three
Replies: 12
Views: 9652

Re: Why wa

Hi, I got WA,
But I believe that my solution has to be good.


Could anybody provide some cases for which my solution doesn't work

Code: Select all

AC
by sith
Sun Dec 09, 2012 5:26 am
Forum: Volume 115 (11500-11599)
Topic: 11577 - Letter Frequency
Replies: 19
Views: 6800

Re: 11577 - Letter Frequency TLE

Thank you.
Got AC
by sith
Sun Dec 09, 2012 5:14 am
Forum: Volume 115 (11500-11599)
Topic: 11541 - Decoding
Replies: 12
Views: 4570

Re: 11541 - Decoding

thank you,
silly typo
got AC
by sith
Thu Dec 06, 2012 9:24 am
Forum: Volume 115 (11500-11599)
Topic: 11520 - Fill the Square
Replies: 5
Views: 3176

Re: 11520 - Fill the Square

Hi, I've got WA, but my solution shows correct results for mentioned inputs. Why WA? Maybe I print extra '\n', or there are any special case that I missed? import java.io.*; import java.util.Scanner; import java.util.Set; import java.util.TreeSet; class Main { public static void main(String[] args) ...
by sith
Tue Dec 04, 2012 8:33 am
Forum: Volume 115 (11500-11599)
Topic: 11577 - Letter Frequency
Replies: 19
Views: 6800

11577 - Letter Frequency

Hi,

I got TL.

I am sure that complexity of my solution is n+nlogn. Is it enough? or there is exits faster algorithm
Or this is Java I/O problems?


Please give me advice.



Code: Select all

AC
by sith
Tue Dec 04, 2012 7:47 am
Forum: Volume 115 (11500-11599)
Topic: 11541 - Decoding
Replies: 12
Views: 4570

Re: 11541 - Decoding

Hi,

I got WA

here is my solution

Code: Select all

AC

Go to advanced search