274 - Cat and Mouse

All about problems in Volume 2. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Hasan
New poster
Posts: 1
Joined: Thu Jun 28, 2012 2:46 am

274 - Cat and Mouse

Post by Hasan »

I'm confused about the input, can anyone please help me with an input of 2 or more cases?
And there is a blank line after the description of mouse doors, right?

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 274 - Cat and Mouse

Post by brianfry713 »

Input:

Code: Select all

2

5 3 5
1 2
2 1
3 1
4 3
5 2
-1 -1
1 3
2 5
3 4
4 1
4 2
4 5
5 4

5 3 5
1 2
2 1
3 1
4 3
5 2
-1 -1
1 3
2 5
3 4
4 1
4 2
4 5
5 4
AC output:

Code: Select all

Y Y

Y Y
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Volume 2 (200-299)”