asdjflkajdf adlkgjlkdjflkjldkf Heading - enter code here enter code here #include # Blockquote include include include include define MAXN 1000005 using namespace std; int n, p[MAXN], la[MAXN], ans; char s[MAXN]; bool pd(int w, int x){if(p[w - 2 * x] < x || p[w + 2 * x] < x)return 0; return 1;} int main() { scanf(鈥?%d鈥?, &n); scanf(鈥?%s鈥?, s + 1); for(int i = n; i; i 鈥?)s[i * 2] = s[i], s[i * 2 - 1] = 鈥?*鈥?; s[0] = 鈥?#鈥?; #include #incldue using namespace std; int main(){ for(int i = 1; i <= n; i ++) } Written with StackEdit.
时间: 2024-10-13 07:05:40