cf/mirror

k-Interesting Pairs Of Integers

CF
769D1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 1
0 3 2 1
Output
4
Sample 2of 2
Input
6 0
200 100 100 100 200 200
Output
6
769D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)