ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1216. Two Pawns and One King

WA#6 :(
Posted by RockBeat 6 Jan 2007 15:46
My prog passes all 307 tests from the forum and gets WA6, help me please... )
Re: WA#6 :(
Posted by Armen Tsirunyan 22 Dec 2008 03:04
I had the same problem.
I was inputting data as follows.
char x, y;
cin>>x>>y;
WhitePawn.x = x-'a'+1;
WhitePawn.y = y-'0';

What I should have done was
char x;
int y;
cin>>x>>y;
WhitePawn.x = x-'a'+1;
WhitePawn.y = y;

Got the point? That's why your prog passes all f*illion tests on this forum- they all have n=8.

GoodLuck!