274 - Cat and Mouse

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

Moderator: Board moderators

274 - Cat and Mouse

Postby Hasan » Thu Jun 28, 2012 3:07 am

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?
Hasan
New poster
 
Posts: 1
Joined: Thu Jun 28, 2012 2:46 am

Re: 274 - Cat and Mouse

Postby brianfry713 » Fri Jun 29, 2012 1:30 am

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
brianfry713
Guru
 
Posts: 1771
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA


Return to Volume II

Who is online

Users browsing this forum: No registered users and 1 guest