cf/mirror

Bubble Sort

CF
2146F2900· international gm2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
4 3
0 1 1
1 3 3
2 4 4
3 2
0 3 3
1 2 3
4 3
1 2 2
2 3 4
0 1 2
5 3
1 1 4
3 5 5
4 5 5
10 5
1 2 3
2 3 4
3 4 5
4 5 6
5 6 7
1000000 0
Output
2
1
8
80
192600
373341033
2146F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)