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

I have tested a lot, and wa lots of times. Leonid Volkov, would you please give us some testdatas or tricks?
Posted by Safe Bird (USU) 30 Oct 2002 13:13
Re: I have tested a lot, and wa lots of times. Leonid Volkov, would you please give us some testdatas or tricks?
Posted by Leonid Volkov 30 Oct 2002 14:13
One of the tricks:
what's your output for white pawn on a5, black pawn on h2, black king
somewhere, say on c1 and the board is 8*8.
What will you output? What do you think about
1. a5-a6 h2-h1Q
2. a6-a7 Qh1-a8!
In fact, I have found out this trick....
Posted by Safe Bird (USU) 30 Oct 2002 15:33
Re: In fact, I have found out this trick....
Posted by Leonid Volkov 30 Oct 2002 15:37
Try to think about the position like
White pawn: c5
Black pawn: b6
Black king: a5
WHITE WINS (with c5-c6!)

White pawn: c5
Black pawn: b6
Black king: e5
WHITE WINS (with c5:b6!)

or

White pawn: c4
Black pawn: b5
Black king: a4
BLACK WINS


Aha, and don't forget about following:
White pawn: c4
Black pawn: c3
Black king: c2
WHITE WINS

White pawn: c5
Black pawn: c2
Black king: c3
WHITE WINS

More samples needed :-) ?
So my answer is "BLACK WINS"!
Posted by Safe Bird (USU) 30 Oct 2002 15:38
Aha, the last of them.... i get"BLACK WINS"
Posted by Safe Bird (USU) 30 Oct 2002 15:40
In fact, I have found this kind of state, and wrote it on a paper. But I forget to put this kind of code into the program....:)
Posted by Safe Bird (USU) 30 Oct 2002 15:42
>
still wa.. :(
Posted by Safe Bird (USU) 30 Oct 2002 15:45
> >
Can I be a pen-friend with you? I think you're quite clever. my icq:162109001, msn:zhuzeyuan@hotmail.com
Posted by Safe Bird (USU) 30 Oct 2002 15:49
Any more samples?
Posted by Safe Bird (USU) 30 Oct 2002 17:04
> Try to think about the position like
> White pawn: c5
> Black pawn: b6
> Black king: a5
> WHITE WINS (with c5-c6!)
>
> White pawn: c5
> Black pawn: b6
> Black king: e5
> WHITE WINS (with c5:b6!)
>
> or
>
> White pawn: c4
> Black pawn: b5
> Black king: a4
> BLACK WINS
>
>
> Aha, and don't forget about following:
> White pawn: c4
> Black pawn: c3
> Black king: c2
> WHITE WINS
>
> White pawn: c5
> Black pawn: c2
> Black king: c3
> WHITE WINS
>
> More samples needed :-) ?
>