Skip to content

Herding Cats

Unrated
English

Language

Contribute a translation
Time limit
2000 ms
Memory limit
2048 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Herding Cats, original English page 1

Herding Cats, original English page 2

Examples

Sample input 1
2
3 5
2 2 1 5
2 3 1 4 5
4 2 3 4
3 5
2 2 1 5
2 3 1 4 5
5 2 3 4
Sample output 1
yes
no

Tags

No tags yet

Source