721 subscribers
12 photos
1 video
14 files
469 links
Download Telegram
Today contest is from 5:30
Videos will be posted at 6pm, as main contest still running
Reason for NO TLE in C

This is because there are total n*(n-1)/2 pairs of two numbers possible. So there can be maximum n*(n-1)/2 different sums possible.

And from the constraint a[i]<=2.5*10^6. So, maximum possible sum will be 5*10^6.

That's why when n*(n-1)/2 is greater than 5*10^6, then answer always exists. So, when n>4000, the there always exist a answer. Hence not getting TLE.
Also same codes are getting accepted after contest which got TLE during the contest
Video will pe posted soon, my onenote app(white board i use), is crashing up my laptop
Videos will be littke late, Microsoft OneNote and white board, both apps are causing trouble, laptop freeze kar de raha, fir force restart karna pad raha
Agar koi alternative apps ho, toh please bata dena
Cf A and b will be posted soon