A Simple GCD Problem (Hard Version)
2210C22100· master6s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
971 2 3 4 5 6 7100 6 12 20 5 2 7367 67 671000000000 1000000000 100000000068 10 10 12 12 141 1 1 1 1 182010 330 550 2 210 385 1001 3232010 1000 1200 30 500 1000 2000 100041 2 4 31 1 1 162 3 4 5 1 610 15 20 25 5 3021 22 10052860 2860 143 9009 90092860 2860 1430 9009 900932 60 6010 60 60
Output
730716200
58%
2210C2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)