Skip to content

Mobile Phones

Unrated
English

Language

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

Statement

Mobile Phones: original English statement, page 1

Mobile Phones: original English statement, page 2

Examples

Sample input 1
0 4
1 1 2 3
2 0 0 2 2
1 1 1 2
1 1 2 -1
2 1 1 2 3
3
Sample output 1
3
4

Tags

No tags yet

Source