Codeforces Round 867 (Div. 3) G2. Magic Triples (Hard Version)
- Time : O(n∗min(√Ai,√MAX/Ai))
- Space : O(n)
c++
1 |
|