比赛 2026.1.3 评测结果 WAWWWWWWWW
题目名称 KMP 最终得分 10
用户昵称 LikableP 运行时间 0.351 s
代码语言 C++ 内存使用 4.09 MiB
提交时间 2026-01-03 11:51:36
显示代码纯文本
#include <cstdio>
#include <cctype>

template <typename T> T read() {
  T res = 0, f = 1;
  char ch = getchar();
  for (; !isdigit(ch); ch = getchar()) if (ch == '-') f = -1;
  for (; isdigit(ch); ch = getchar()) res = (res << 3) + (res << 1) + (ch ^ 48);
  return res * f;
}

#include <cmath>
const int MAXN = 1e6 + 10;

int n;
int idx[MAXN];

int main() {
  #ifdef LOCAL
    freopen("!input.in", "r", stdin);
    freopen("!output.out", "w", stdout);
  #else
    freopen("kmpp.in", "r", stdin);
    freopen("kmpp.out", "w", stdout);
  #endif
  n = read<int>();
  for (int i = 1; i <= n; ++i) {
    idx[i] = read<int>();
  }
  puts("Impossible");
  return 0;
}