Here is the link for problem: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=372&problem=216&mosmsg=Submission+received+with+ID+10004212
This is my code:
import java.util.ArrayList;
import java.util.Scanner;
import javax.swing.SpringLayout ...
Search found 5 matches
- Wed Apr 18, 2012 9:40 am
- Forum: Volume 2 (200-299)
- Topic: 280 - Vertex
- Replies: 95
- Views: 37672
- Wed Apr 18, 2012 7:52 am
- Forum: Volume 1 (100-199)
- Topic: 168 - Theseus and the Minotaur
- Replies: 64
- Views: 15174
Re: 168 - Theseus and the Minotaur TLE
Thank you brianfry713,
Maybe I'm having too much misunderstanding about this problem. In that test case,
If a cavern has no exit it may or may not be in the input.
So C doesn't have any connection with A and B, so Theseus cannot chase the Minotaur? Then if I try comment out this line:
if ...
Maybe I'm having too much misunderstanding about this problem. In that test case,
If a cavern has no exit it may or may not be in the input.
So C doesn't have any connection with A and B, so Theseus cannot chase the Minotaur? Then if I try comment out this line:
if ...
- Tue Apr 17, 2012 9:13 pm
- Forum: Volume 1 (100-199)
- Topic: 168 - Theseus and the Minotaur
- Replies: 64
- Views: 15174
168 - Theseus and the Minotaur TLE
I wonder which test case that cause the TLE. Here is my code, please give me some big case and I will try to improve it.
(My program return results correctly for problems at this topic: http://online-judge.uva.es/board/viewtopic.php?f=1&t=14236)
import java.util.ArrayList;
import java.util ...
(My program return results correctly for problems at this topic: http://online-judge.uva.es/board/viewtopic.php?f=1&t=14236)
import java.util.ArrayList;
import java.util ...
- Tue Apr 17, 2012 2:51 pm
- Forum: Volume 1 (100-199)
- Topic: 168 - Theseus and the Minotaur
- Replies: 64
- Views: 15174
Re: 168 Now ACed,ignore it
Read the problem description again. It was alphabetical just for the sample case. "The description of a labyrinth will identify each cavern by an upper case character and will list the caverns reachable from that cavern in the order that the Minotaur will attempt them"
In the input A:DBC. A B 20 ...
In the input A:DBC. A B 20 ...
- Mon Apr 16, 2012 4:28 pm
- Forum: Volume 1 (100-199)
- Topic: 168 - Theseus and the Minotaur
- Replies: 64
- Views: 15174
Re:
Try this:
A:DBC. A B 20
#
Your answer is:
/C
The correct answer should be:
/D
Hello, please explains why the answer is /D? If I understand the problem correctly, the graph should be like this:
http://img710.imageshack.us/img710/8901/54669046.png
And
where in this case the ...
A:DBC. A B 20
#
Your answer is:
/C
The correct answer should be:
/D
Hello, please explains why the answer is /D? If I understand the problem correctly, the graph should be like this:
http://img710.imageshack.us/img710/8901/54669046.png
And
where in this case the ...