SIGFPE in March long Maximum number, GCD condition

I’m getting a runtime error in the prob

I’ve checked for array index bounds

and the constraints clearly say that input can not be zer too

any suggestions?

No hints during the live contest !!!

Read the guidelines.

2 Likes
//