Weak Testcases in MAXOR?

ltime50
maxor
testcase
weak

#1

How did this n2 solution pass?

I ran the code with input 1,2,3…105 and 10 testcases and it fails.

This is exactly what all of us did to get 20pts, the only difference here is he used distinct elements

Can anyone help?

Link To Solution


#4

exactly, less than 10^3 or 10^4 unique elements must have been present. :expressionless:


#5

this is the second contest in july where moderate knowledge of time complexity doomed me :expressionless:


#6

this is the second contest in july where moderate knowledge of time complexity doomed me :|

Oh God! That line tho :frowning:

I kind of like long contest in general. Like Week of Code, Codechef monthly long. Lots of time and interesting problems. Short contest make me jumpy.Plus such things in short contests make a lot more difference than in long.


#7

yeah right! I always reach 5 after long ratings update, and back to 4 after short contests :stuck_out_tongue:


#8

Is this answer just to necro the thread back or you have any specific instance at hand which is relevant to the community as of now? :slight_smile: