cf/mirror

Собачки и миски

CF
648D1900· candidate master⌨ stdin/stdout

Examples

Sample 1of 3
Input
5 4
-2 0 4 8 13
-1 1
4 3
6 3
11 2
Output
4
Sample 2of 3
Input
3 3
-1 3 7
1 1
4 1
7 1
Output
2
Sample 3of 3
Input
4 4
20 1 10 30
1 1
2 5
22 2
40 10
Output
3
648D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)