Skip to content

A-Skew-ed Reasoning

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

A-Skew-ed Reasoning, original English page 1

A-Skew-ed Reasoning, original English page 2

Examples

Sample input 1
7
2 3
4 5
6 7
0 0
0 0
0 0
0 0
Sample output 1
1 3 2 7 5 6 4
7 1 5 3 2 6 4
Sample input 2
2
0 2
0 0
Sample output 2
impossible
Sample input 3
3
2 0
3 0
0 0
Sample output 3
2 3 1
3 2 1

Tags

No tags yet

Source