cf/mirror

Partial Sorting

CF
1768E2300· international master1.5s1024 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
1 100009067
Output
9
Sample 2of 3
Input
2 100000357
Output
1689
Sample 3of 3
Input
69 999900997
Output
193862705
1768E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)