Comments
On TheSensei → Eolymp Weekend Practice #8, 16 months ago
+3

Looking forward to the contest TheSensei

0

I can't find what's wrong with my code for problem F, which uses the same approach as in the editorial. My submission — 194098249. Can anyone please point out the mistake?

For condition 1, if l > 1 you initialized cur = 2 * (l — 1). Shouldn't this be the case only when x is at-least mn?

In problem F, I couldn't understand from the editorial how are we checking if a certain hotness can be obtained from some elements of S in O(N) time. Any help?

Oh, thanks! Never using log2 again :(

Can anyone tell me what's wrong with my solution? 133471460 For example on this test case : 576460752303423488 288230376151711743

Jury's answer is 60 but according to me it should be 59. As, first 59 powers of 2 will give the sum of n-1 and 2 ^ 58 < k here.

Thanks for pointing that out. It worked

Can anyone please point out what's wrong with my code for 2D? 125022309 Getting Runtime error on test 3

This is the solution for D, I am asking for B. I got the idea of O(n^3) approach given in the tutorial, just curious what's wrong with my approach.

I tried solving B using two pointers, getting WA on TC 14. Can anyone point out what's wrong? 123384175