U268901 [USACO08OPEN]The Ultimate Battle G
题目描述
Bessie and Canmuu are battling each other on a rectagular W x H (1
输入格式
PROBLEM NAME: pieface
INPUT FORMAT:
* Line 1: Six space-separated integers: W, H, x1, y1, x2, and y2
SAMPLE INPUT (file pieface.in):
```plain
3 3 1 1 2 3
```
OUTPUT FORMAT:
* Line All: Each output line contains a pair of space-separated integers that represent Bessie's new location.
SAMPLE OUTPUT (file pieface.out):
Do not use the file 'pieface.out'. See below for sample interactions.
OUTPUT DETAILS:
Here is a possible winning interaction:
```plain
> 1 2 Bessie moves up by 1 to 1,2
< 3 3 Canmuu moves to 1 to the right to 3,3
> 2 2 Bessie moves to 2,2 by going one to the right
```
At which point Canmuu could no longer make a move without getting a pie in the face.
```plain
3 . C . . C . . . C . . C
2 . . . => B . . => B . . => . B . => Canmuu must pass Bessie's row
1 B . . . . . . . . . . . or column on his next move
1 2 3 1 2 3 1 2 3 1 2 3
```
输出格式
无
说明/提示
In order to ensure that your program's output is not buffered inside your program; you must 'flush' your output.
If you're using stdio.h, include the line
setbuf(stdout, 0);
near the top of your program.
If you're using C++ style I/O, flush each output line like this:
cout