CF 1780E - Josuke and Complete Graph

Rating: 2400
Tags: binary search, brute force, data structures, math, number theory
Solve time: 54s
Verified: no

Solution

Working