Logo rerun' blog

Blog

GP of IMO D题的高超做法

2021-09-27 20:25:48 By rerun

众所周知, 题解做法是 $O(n^3/w)$ 的,跑的又慢又难写,已经被击败了!

现在流行二分, 我们直接二分, 然后把暴力判定套个 bitset, 复杂度 $O(n^3 \log n / w)$, 发现 0.1s 就通过了! 实在是再强没有二分强.

你学会了吗?

Comments

repoman
😭
  • 2021-09-27 20:28:21
  • Reply
Almost_Complet
std在ejudge上TLE了/fn
  • 2021-09-29 11:14:23
  • Reply

Post a comment

You can refer to mike by using "@mike", and "mike" will be highlighted. If you want to type the character "@", please use "@@" instead.

You can enter "/kel" to use the emoticon "kel". Here is the emoticon guide (in Chinese).

Please use 'Default Mode' in most cases. Malicious use of 'Source Code Mode' will get you banned.