Refined Product Optimality
2053D1700· expert3s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
43 41 1 23 2 11 32 31 12 16 81 4 2 7 3 57 6 5 6 3 32 51 61 51 51 52 32 31 613 87 7 6 6 5 5 5 2 2 3 4 5 11 4 1 9 6 6 9 1 5 1 3 8 42 22 112 42 41 71 12 121 55 310000000 20000000 30000000 40000000 5000000010000000 20000000 30000000 40000000 500000001 12 22 1
Output
2 3 3 6 6840 840 1008 1344 1680 2016 2016 2016 23522116800 2646000 3528000 3528000 3528000 4233600 4838400 4838400 4838400205272023 205272023 205272023 264129429
58%
2053D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)