cf/mirror

Company Merging

CF
1090A1300· pupil1s512 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 1
Input
3
2 4 3
2 2 1
3 1 1 1
Output
13
1090A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)