potatoArmy's blog

By potatoArmy, history, 2 hours ago, In English

Problem 1: 2263C1 - Floor of MEX (Easy Version)

$$$O(n^2)$$$ solution: 390532511

Code

kondasujay2 CutSandstone sukon

Problem 2: 2269C - K Is Important

$$$O(n^2)$$$ solution: 392233470

Code

Hamed_Ghaffari sweetweasel eren__ _R00T

The reason? Because of $$$n \le 10^5$$$, not $$$2 \cdot 10^5$$$, PLEASE all future authors use $$$n \le 2 \cdot 10^5$$$ PLEASE

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
99 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Are these really n^2 if the first one ran in 46ms? Also killing brute / heuristic solutions I think is a part of the testing process. I gave up and tried to submit an AVX solution to d1C this morning and it made it to pretest 11 but died then

  • »
    »
    75 minutes ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    the first one ran in 46ms, but the max test case could be up to >1500ms https://codeforces.me/blog/entry/156688#comment-1392295

»
85 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Not crazy enough. Just watch this, We can solve *3100 in $$$O(n^2)$$$ with AVX.