rt,今天写代码的时候如是写(本地过编了):
const int N=11e6+10; int d[N]={1};
然后CE了link,还以为评测机炸了,结果以下两份代码均过编了:
const int N=11e6+10; int d[N]; 主函数中: d[0]=1;
const int N=11e5+10; int d[N]={1};
不能理解为什么。求教。 另外,今天才发现hash求最长回文子串也能 O(n)O(n)O(n)