Codeforces Round 889
https://codeforces.com/contest/1854
B - Earn or Unlock
想了半天,bitset就过了??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
卧槽 200000^2/64 = 6'2500'0000.0
也能跑进3秒的吗?
https://codeforces.com/contest/1854/submission/216347777
1 |
|
总结
B
常数优化完全不会, n*bitset(n/64)
n = 2e5可以跑进3秒!?
有人rust的也是bitset, https://codeforces.com/contest/1854/submission/216290617
pypy: https://codeforces.com/contest/1854/submission/216353273
C