~/algor $ cat duels/861
Duel #861
A 1v1 battle on the problem «Diagonals of a polygon».
Winner: Iqbolshoh Ilhomjonov
The winner was the first to solve it correctly — in 41 s.
Diagonals of a polygon
The number of vertices of a convex polygon is given. Find the number of its diagonals . A diagonal is a segment joining two non-adjacent vertices:
Sample tests
5
5
4
2
Battle results compared
1v1 reportSubmission timeline (2)
All submissionsIqbolshoh Ilhomjonov won
The 1v1 battle ended after a hard fight.