Divisible Numbers (hard version)
1744E21900· candidate master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
101 1 2 23 4 5 78 9 15 1812 21 14 2436 60 48 661024 729 373248 7301024 729 373247 7305040 40320 40319 1000000000999999999 999999999 1000000000 1000000000268435456 268435456 1000000000 1000000000
Output
2 24 612 12-1 -1-1 -1373248 730-1 -115120 53760-1 -1536870912 536870912
58%
1744E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)