Skip to content

Money for Nothing

Unrated
English

Language

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

Statement

Money for Nothing, original English page 1

Money for Nothing, original English page 2

Examples

Sample input 1
2 2
1 3
2 1
3 5
7 2
Sample output 1
5
Sample input 2
1 2
10 10
9 11
11 9
Sample output 2
0

Tags

No tags yet

Source