Comments

I' m doing it now, but another question is: How to improve the speed of solving "ABC"'s A ,B and C? :)

Interesting suggestion. I definitely have to try it.

This competition had one official technical issue and one technical issue from the organizer... It ruined the first three very interesting questions. I feel very angry.

you as a AKer, you FST. lol

now it really preformed. 59% this moment

but the contest unrated for ya.

+3

it seem unrated.

+2

toooooooooooooooooooooooooooooo hard 4 div3

so i give you downvote.

Divide the largest by the smallest each time, when there is a 1 in the array, it is not possible for all of them to be the same. I guess it for 1.5h. I don't think it's a great problem.