ABC125C
https://gyazo.com/be7a37e747fc2d81355ee27815fa105a
Thoughts.
If the remaining gcd after removing one is 1, then it's 1 no matter what.
Because gcd can never be greater than its argument.
In other words, "Find the maximum value of gcd with one removed."
Official Explanation
Same policy
He's using 0 as a sentry.
$ \gcd(0, X) = \gcd(X, 0) = X
Python standard gcd also behaves this way
---
This page is auto-translated from /nishio/ABC125C. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.