Comments

The test cases for this problem are really weak. I found this $$$O(N^2)$$$ brute-force solution that got AC smoothly. It seems the worst-case scenario (an empty set where $$$a_i = 0$$$ for all $$$i$$$) was completely missing from the tests.

Submission: https://codeforces.me/contest/2263/submission/390480145

+9

Egypt, Luxor University, El3omr L7za Wl i msh mla7za, Abdulrahman, Hussein_Yasser, MahmoudERayes

On anish.wagle → Rating in Contests, 3 years ago
+13

in Div.2 : Every successful submission for the same problem after the first one gives you -50 score points.

-6

Do you have a GF?

As a participant I hope to get 1200+ rating or even better, Pupil ****

As a participant I hope to get 1200+ rating or even better, Pupil

0

rename this contest to Div.2 ):

+11

I hope rating changes will update before i get to sleep.

I hope rating changes will update before i get to sleep.standings

I agreeee with u