cf/mirror

Grid Game 2

CF
1906G2900· international gm1s1024 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
2 3
2 4
Output
FIRST
Sample 2of 3
Input
1
2 2
Output
SECOND
Sample 3of 3
Input
13
1 1
1 4
1 5
2 1
2 4
2 5
4 1
4 2
4 4
5 1
5 2
5 4
5 5
Output
SECOND
1906G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)