Comments

I can't take part in the contest because I must go to school tomorrow.I'm very sad.

0

My English is not good, so some of them are translated.

D guarantees that n is greater than or equal to 2, but they have n is equal to 1 in their data.

The first solution get Accepted. https://codeforces.me/contest/1742/submission/176077405

The second solution adds assert(n! =1) Then it gets Runtime error on test2.

https://codeforces.me/contest/1742/submission/176155308