Skip to content

Tickets

UnratedFunction
English

Language

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

Statement

Tickets: original English statement, page 1

Tickets: original English statement, page 2

Tickets: original English statement, page 3

Tickets: original English statement, page 4

Examples

Sample input 1
2 3 2
0 2 5
1 1 3
Sample output 1
7
0 -1 1
-1 1 0
Sample input 2
4 2 1
5 9
1 4
3 6
2 7
Sample output 2
12
-1 0
0 -1
0 -1
-1 0

Tags

No tags yet

Source

This problem accepts only these languages.

C++20