11906 - Knight in a War Grid

All about problems in Volume CXIX. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

11906 - Knight in a War Grid

Postby SHOJIBcuet09 » Tue Apr 03, 2012 5:45 am

check the input ..

1
3 3 1 2
2
1 2
2 1
AC output
Case 1: 1 0

I was getting WA for output : "Case 1: 0 0" (problem description is saying this, I think but this was WA for at least 6 times)
SHOJIBcuet09
New poster
 
Posts: 1
Joined: Sun Apr 01, 2012 2:44 am

Re: 11906 - Knight in a War Grid

Postby pranon » Tue Jul 24, 2012 8:00 pm

``Wrong Answer"! :'(
Can anyone help me in finding my mistake?
Code: Select all
AC, lots of missed cases. Should analyze carefully and properly. :(
Last edited by pranon on Thu Jul 26, 2012 11:41 am, edited 2 times in total.
pranon
New poster
 
Posts: 14
Joined: Mon Jul 23, 2012 2:39 pm

Re: 11906 - Knight in a War Grid

Postby brianfry713 » Wed Jul 25, 2012 2:15 am

Input:
Code: Select all
1
10 10 2 2
0
AC Output:
Code: Select all
Case 1: 9 4
brianfry713
Guru
 
Posts: 1861
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 11906 - Knight in a War Grid

Postby pranon » Wed Jul 25, 2012 9:19 am

Code edited for above input. But... is still being judged ``Wrong Answer".
Code: Select all
AC, thanks to brianfry713. :)


Sorry. And thanks in advance.
Last edited by pranon on Thu Jul 26, 2012 11:42 am, edited 1 time in total.
pranon
New poster
 
Posts: 14
Joined: Mon Jul 23, 2012 2:39 pm

Re: 11906 - Knight in a War Grid

Postby brianfry713 » Thu Jul 26, 2012 12:00 am

Input:
Code: Select all
1
10 10 2 0
0
AC Output:
Code: Select all
Case 1: 13 12
brianfry713
Guru
 
Posts: 1861
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA


Return to Volume CXIX

Who is online

Users browsing this forum: No registered users and 1 guest