Another Problem about Beautiful Pairs
2196B1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
451 1 2 100 462 2 1 1 2 2101 1 2 3 4 1 1 7 3 921000000000 1000000000
Output
37100
58%
2196B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)