Search found 579 matches

by Darko
Wed Sep 24, 2014 12:19 am
Forum: Bugs and suggestions
Topic: Forum for Volume XVII and CXXVIII
Replies: 1
Views: 2499

Re: Forum for Volume XVII and CXXVIII

It took a while but it is done now.

Darko
by Darko
Wed Jul 23, 2014 8:37 pm
Forum: Volume 4 (400-499)
Topic: 422 - Word-Search Wonder
Replies: 18
Views: 8538

Re: 422 word search wonder

It is as simple as checking all possible starting positions and checking all 8 directions.

Something is wrong with your implementation.

How about this one:

Code: Select all

2
AA
AA
AAA
0
by Darko
Fri Jun 13, 2014 3:37 pm
Forum: Volume 122 (12200-12299)
Topic: 12207 - That is Your Queue
Replies: 4
Views: 6036

Re: 12207 - That is Your Queue

Here is another case:

Code: Select all

1000000000 11
E 12
E 9999
N
E 100000001
N
E 10
E 13
E 100000001
N
N
N
0 0

Code: Select all

Case 1:
9999
100000001
100000001
13
10
by Darko
Thu Jun 12, 2014 1:06 am
Forum: Volume 105 (10500-10599)
Topic: 10562 - Undraw the Trees
Replies: 18
Views: 9454

Re: 10562 - Undraw the Trees

Not sure why I even tried this - I have no idea what is wrong with my code. Sorry about the custom I/O, remnants of the old UVa... Also - I used dynamic array sizes, hence a lot of checks. import java.io.IOException; import java.util.ArrayList; import java.util.List; public class Main { private stat...
by Darko
Tue Jun 10, 2014 1:02 am
Forum: Volume 105 (10500-10599)
Topic: 10596 - Morning Walk
Replies: 41
Views: 18998

Re: 10596 - Morning Walk

This one was re-judged recently and my "solution" was not accepted anymore. I am assuming that someone "fixed" the I/O but I am not quite sure how it is fixed when the statement itself is still ambiguous. In the description section, it is mentioned that roads are visited only onc...
by Darko
Fri Dec 06, 2013 7:33 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 94204

Re: 10035 - primary arithmetic help!

I apologize if that was me that deleted the account - I had something like "if joined in last 5 days and has more than 5 posts, delete".
I eyeballed the account names, none of them looked legit so I might have missed yours.

Sorry about that.

Darko
by Darko
Thu Dec 05, 2013 8:48 pm
Forum: Volume 12 (1200-1299)
Topic: 1235 - Anti Brute Force Lock
Replies: 3
Views: 3089

Re: UVA 1235

To OP: You are making an assumption that is not stated anywhere - that 0000 is unlocked.
You only start at 0000 and you will only unlock it if it is in the list of keys.

Look at the third example, your solution will produce 24 instead of 26.

Try:
1
2 0001 0009

The answer is 3, not 2.
by Darko
Tue Nov 26, 2013 6:21 pm
Forum: Volume 1 (100-199)
Topic: 196 - Spreadsheet
Replies: 42
Views: 15730

Re: What a strange problem: 196!

Here is one case that I originally failed, maybe it can help others:

Code: Select all

1
2 2
10 =A1+A1
10 10

Code: Select all

10 20
10 10
by Darko
Tue Mar 19, 2013 1:17 am
Forum: Off topic (General chit-chat)
Topic: binary sort in java
Replies: 1
Views: 30236

Re: binary sort in java

Code: Select all

public boolean findNum(int[] nums, int theNum)
{
  return Arrays.binarySearch(nums, theNum) >= 0;
}
by Darko
Mon Mar 11, 2013 4:31 pm
Forum: Bugs and suggestions
Topic: bug in board logging in system
Replies: 13
Views: 5782

Re: bug in board logging in system

OK, this seems to be a bad solution but we will go back to forcing people to go through Q&A every time.

We just cannot keep up with spam.

Darko
by Darko
Tue Mar 05, 2013 7:53 pm
Forum: Bugs and suggestions
Topic: Forum for Volume CXXVI
Replies: 1
Views: 2069

Re: Forum for Volume CXXVI

Done.
by Darko
Fri Mar 01, 2013 12:20 am
Forum: Bugs and suggestions
Topic: 622 - Grammar Evaluation (pdf error)
Replies: 2
Views: 3730

Re: 622 - Grammar Evaluation (pdf error)

This is wrong, PDF should have been changed.

The grammar in its current state does not allow multiplication.
by Darko
Thu Feb 28, 2013 9:11 pm
Forum: Volume 8 (800-899)
Topic: 815 - Flooded!
Replies: 20
Views: 13213

Re: 815 - Flooded!

This one has some precision issues - Can't we remove all the cases where Java and C produce different answers? I just recoded my Java solution in C and got it accepted (after several WAs in Java). Carlos' comment should probably read "If there is an exact answer of 1.225 you should print 1.22 a...
by Darko
Wed Feb 20, 2013 4:45 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 293285

Re: TLE in 3n+1 Problem. Why?

I am not sure how you think you fixed the start>stop issue but it is not fixed in the code you posted. Try 999999 1 I am not familiar with C++ that much but I am not sure that is how you determine that you reached the end of file. There is a link to a C solution (if you click around the site): http:...
by Darko
Tue Feb 19, 2013 10:40 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 293285

Re: TLE in 3n+1 Problem. Why?

There is a sticky thread in Volume I but one of the problems you have is that you assume start <= stop.

Go to advanced search