Ehab and the Expected GCD Problem
1174E2500· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
2
Output
1
Sample 2of 3
Input
3
Output
4
Sample 3of 3
Input
6
Output
120
58%
1174E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
2
1
3
4
6
120