Skip to content

Split the Attractions

UnratedFunction
English

Language

Contribute a translation
Time limit
2000 ms
Memory limit
1024 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Split the Attractions: original English statement, page 1

Split the Attractions: original English statement, page 2

Split the Attractions: original English statement, page 3

Examples

Sample input 1
9 10
4 2 3
0 1
0 2
0 3
0 4
0 6
0 8
1 7
3 7
4 5
5 6
Sample output 1
1 1 3 1 2 2 3 1 3
Sample input 2
6 5
2 2 2
0 1
0 2
0 3
0 4
0 5
Sample output 2
0 0 0 0 0 0

Tags

No tags yet

Source

This problem accepts only these languages.

C++20