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

Some tests are wrong!!!
Posted by SIS 27 Oct 2004 00:18
Some tests are wrong:

Test 59:

 Input:
  8
  c2 b4 a1

 Output ( jury ):
  BLACK WINS // it isn't true

 Output ( my ):
  WHITE WINS // it is true

See chessboard:
......
......
.B....
......
..W...
K.....

White pawn can jump from c2 to c4. Black pawn can't block
it. Then WHITE player WINs the game.

Edited by author 27.10.2004 00:23

Edited by author 27.10.2004 00:24
You're wrong. Read problem definition carefully (+)
Posted by Dmitry 'Diman_YES' Kovalioff 27 Oct 2004 13:27
"Just after the white pawn makes a move from x2 to x4, the black pawn may beat the white pawn en passant, moving from y4 to x3, if y is a vertical line, neighboring to the x-vertical."