Skip to content

Sorting

UnratedFunction
English

Language

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

Statement

Sorting: original English statement, page 1

Sorting: original English statement, page 2

Sorting: original English statement, page 3

Examples

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

Tags

No tags yet

Source

This problem accepts only these languages.

C++20