Tahnks to Saman_saadi for your erly reply.
saman_saadi wrote:
The problem statement said that a horse can move atmost 1 movement so you shouldn't mark the squares that horse can reach with 'Z' if you do it then horse can move more than 1 movement so you must mark reachable squares by horse with ...
Search found 56 matches
- Tue Nov 13, 2007 11:07 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11352 - Crazy King
- Replies: 32
- Views: 17502
- Tue Nov 13, 2007 9:53 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11347 - Multifactorials
- Replies: 7
- Views: 4796
Try with this Input
Your program gives:
But the actual Output will be:
Code: Select all
3
997!!!!!!!!!!!!!!!!!!!!
997!!!!!!!!!!!!!!!!!!!
997!!!!!!!!!!!!!!!!!!
Code: Select all
Case 1: 140896402145280
Case 2: 15533828336517120
Case 3: 12524124635136000
Code: Select all
Case 1: 288555831593533440
Case 2: 994165013537095680
Case 3: Infinity
- Tue Nov 13, 2007 9:24 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11352 - Crazy King
- Replies: 32
- Views: 17502
- Mon Nov 05, 2007 8:23 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10927 - Bright Lights
- Replies: 26
- Views: 19037
- Mon Oct 29, 2007 9:11 am
- Forum: Volume 109 (10900-10999)
- Topic: 10927 - Bright Lights
- Replies: 26
- Views: 19037
Any body help please.
I am getting wa
heres my code.
/* this passed all the test cases given this thread*/

I am getting wa
heres my code.
Code: Select all
removed after Accepted
to get accepted change your eps by 1e-11


- Tue Oct 23, 2007 7:10 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11223 - O: dah dah dah!
- Replies: 43
- Views: 25764
- Sun Sep 23, 2007 9:30 am
- Forum: Volume 112 (11200-11299)
- Topic: 11281 - Triangular Pegs in Round Holes
- Replies: 26
- Views: 13607
- Tue Sep 18, 2007 8:09 am
- Forum: Volume 112 (11200-11299)
- Topic: 11281 - Triangular Pegs in Round Holes
- Replies: 26
- Views: 13607
- Mon Sep 17, 2007 8:29 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11281 - Triangular Pegs in Round Holes
- Replies: 26
- Views: 13607
I got several times WA. Can anybody help?
I think my logic is correct.
My code passed the sample input and the inputs input which is given in the board.
I think my logic is correct.
My code passed the sample input and the inputs input which is given in the board.
Code: Select all
Removed
- Wed Jul 04, 2007 4:16 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11206 - Coloring the map, but not anyhow
- Replies: 7
- Views: 3988
- Tue Jul 03, 2007 6:49 am
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 58747
- Sun Jul 01, 2007 6:32 am
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 58747
- Wed May 23, 2007 2:37 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11203 - Can you decide it for ME?
- Replies: 21
- Views: 14737
- Wed May 23, 2007 2:17 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11201 - The problem of the crazy linguist
- Replies: 21
- Views: 13908
- Tue May 22, 2007 11:50 am
- Forum: Volume 112 (11200-11299)
- Topic: 11207 - The easiest way
- Replies: 27
- Views: 17370