Skip to content

Joining Points

UnratedLanguage limit
English

Language

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

Statement

Joining Points

Joining Points

Examples

Sample input 1
6
0 1000
1000 1000
203 601
449 212
620 837
708 537
8
0 0
1000 0
185 300
314 888
416 458
614 622
683 95
838 400
Sample output 1
1 3 g
3 1 r
3 5 r
4 6 r
6 5 r
4 6 g
1 2 g
1 2 r
5 2 g
2 6 g
7 8 r
8 2 r

Tags

No tags yet

Source

This problem accepts only these languages.

C++20