I use memoization / dp approach. Here is some clue
memo[v][d]
can i reach the destination if i'm vertex no v and i have d days left.
I'm sure you can figure out the rest
regards,
stephanus
Search found 23 matches
- Mon Aug 23, 2004 3:59 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10681 - Teobaldo's Trip
- Replies: 44
- Views: 18694
- Fri Aug 06, 2004 4:37 am
- Forum: Volume 104 (10400-10499)
- Topic: 10479 - The Hendrie Sequence
- Replies: 14
- Views: 8376
- Fri Jul 09, 2004 5:29 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10674 - Tangents
- Replies: 13
- Views: 7246
10674 - Tangents - Which one is correct?
Hi,
Anyone has test data, i try everything that I could, but WA, don't know what's wrong. Btw what's the output of
INPUT
-10 30 10 10 20 10
MY FRIEND'S ACC OUTPUT
4
-14.47214 21.05573 5.52786 11.05573 22.36068
-5.52786 38.94427 14.47214 28.94427 22.36068
-4.00000 22.00000 4.00000 28.00000 10 ...
Anyone has test data, i try everything that I could, but WA, don't know what's wrong. Btw what's the output of
INPUT
-10 30 10 10 20 10
MY FRIEND'S ACC OUTPUT
4
-14.47214 21.05573 5.52786 11.05573 22.36068
-5.52786 38.94427 14.47214 28.94427 22.36068
-4.00000 22.00000 4.00000 28.00000 10 ...
- Fri Jul 02, 2004 12:42 am
- Forum: Volume 105 (10500-10599)
- Topic: 10547 - Hidden Truth in Recurrence
- Replies: 7
- Views: 3894
- Fri Jun 11, 2004 9:09 am
- Forum: Off topic (General chit-chat)
- Topic: New site with UVA Hints + UVA Problem Ranking
- Replies: 4
- Views: 3222
New site with UVA Hints + UVA Problem Ranking
Hi all,
New site with UVA Hints + UVA Problem Ranking.
You are cordially invited to HarvestSoft
http://www.harvestsoft.net
About UVA Hints
http://www.harvestsoft.net/uva.php
Provides UVA Hints if you get stucked. Now it's not too many. But it will be updated regularly.
About UVA Problem ...
New site with UVA Hints + UVA Problem Ranking.
You are cordially invited to HarvestSoft
http://www.harvestsoft.net
About UVA Hints
http://www.harvestsoft.net/uva.php
Provides UVA Hints if you get stucked. Now it's not too many. But it will be updated regularly.
About UVA Problem ...
- Wed May 26, 2004 2:05 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10603 - Fill
- Replies: 19
- Views: 13319
- Tue May 25, 2004 8:51 am
- Forum: Volume 106 (10600-10699)
- Topic: 10603 - Fill
- Replies: 19
- Views: 13319
10603 - Fill
Hi,
I got WA for this. I use memoization to solve. But WA
anyone got test cases? and what the answer for this?
Input
5
12 23 42 14
12 53 75 23
56 23 34 2
23 55 72 25
124 86 173 84
Output
166 14
728 23
0 0
23 23
1012 77
I got WA for this. I use memoization to solve. But WA

anyone got test cases? and what the answer for this?
Input
5
12 23 42 14
12 53 75 23
56 23 34 2
23 55 72 25
124 86 173 84
Output
166 14
728 23
0 0
23 23
1012 77
- Fri May 14, 2004 5:14 am
- Forum: Volume 106 (10600-10699)
- Topic: 10644 - Floor Tiles
- Replies: 25
- Views: 13480
- Tue May 11, 2004 1:46 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10650 - Determinate Prime
- Replies: 67
- Views: 37903
- Thu May 06, 2004 4:29 am
- Forum: Volume 106 (10600-10699)
- Topic: 10620 - A Flea on a Chessboard
- Replies: 10
- Views: 7798
- Thu Jan 01, 2004 10:47 am
- Forum: Volume 105 (10500-10599)
- Topic: 10574 - Counting Rectangles
- Replies: 23
- Views: 11250
- Wed Dec 31, 2003 8:06 am
- Forum: Volume 105 (10500-10599)
- Topic: 10593 - Kites
- Replies: 18
- Views: 8902
- Tue Dec 30, 2003 12:57 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10593 - Kites
- Replies: 18
- Views: 8902
- Tue Dec 30, 2003 6:35 am
- Forum: Volume 105 (10500-10599)
- Topic: 10593 - Kites
- Replies: 18
- Views: 8902
10593
Any idea how to overcome this probs? I use naive brute force O(n^3) for checking the square and O(n^4) for checking the kite and got TLE.
- Mon Dec 29, 2003 5:42 am
- Forum: Volume 105 (10500-10599)
- Topic: 10574 - Counting Rectangles
- Replies: 23
- Views: 11250