比赛 2026.1.3 评测结果 WAWWWWWWWW
题目名称 KMP 最终得分 10
用户昵称 梦那边的美好CE 运行时间 0.385 s
代码语言 C++ 内存使用 6.31 MiB
提交时间 2026-01-03 11:24:58
显示代码纯文本
#include<bits/stdc++.h>
#define N 1919810
#define mod 998245353
using namespace std;

inline void read(int &x) {bool neg = false;x = 0;char ch = 0;while (ch < '0' || ch > '9') {if (ch == '-') neg = true;ch = getchar();}if (neg) {while (ch >= '0' && ch <= '9') {x = x * 10 + ('0' - ch);ch = getchar();}} else {while (ch >= '0' && ch <= '9') {x = x * 10 + (ch - '0');ch = getchar();}}return;}

template <typename T> inline void write(T x) {if (x < 0) x = -x, putchar('-');if (x > 9) write(x / 10);putchar(x % 10 + 48);}

int n,idx[N];

signed main(){
	freopen("kmpp.in","r",stdin);freopen("kmpp.out","w",stdout);
	read(n);
	while(n--){
		read(idx[n]);
	}
	cout<<"Impossible";
	return 0;
}