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 1555. Find the Treasure!

some tests
Posted by LeTim 2 Apr 2025 17:41
Input:
2
.-....
|1|...
......
....-.
|*..2|
.-..-.

Output:
Draw


Input:
5
...............
.1||....||.....
...............
...............
..||..|.||.||..
...............
...............
..||.||.||.||..
...............
...............
..||.||*|..||..
...............
...............
.....||....||2.
...............

Output:
Win 33
M2


Input:
5
...............
.1||....||.....
...............
...............
..||..|.||.||..
...............
...............
..||.||.||.||..
...............
...............
..||.||.|..||..
...............
...............
.....||*...||2.
...............

Output:
Draw


Input:
6
.-..-..-..-..-..-.
|1...............|
..................
..................
|................|
..................
..................
|......*.........|
..................
..................
|................|
..................
..................
|................|
..................
..................
|...............2|
.-..-..-..-..-..-.

Output:
Win 15
M2
(or Win 15 M6, does not matter)


Input:
6
.-..-..-..-..-..-.
|1...............|
..................
..................
|................|
..................
..................
|.........*......|
..................
..................
|................|
..................
..................
|................|
..................
..................
|...............2|
.-..-..-..-..-..-.

Output:
Draw


Input:
6
.-..-.....-..-..-.
|1...............|
..................
..................
|................|
..................
.......-..........
......|*.........|
..................
..................
|................|
..................
..................
|................|
..................
..................
|...............2|
.-..-..-..-..-..-.

Output:
Lose 1
S5

Edited by author 02.04.2025 17:51