| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128871 | 邹子涵 | 找路径 | C++ | Wrong Answer | 1 MS | 272 KB | 295 | 2025-08-20 15:14:16 |
#include<bits/stdc++.h> using namespace std; int a[1000010], n, cnt = 1, maxn; int main() { cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; if (a[i] == a[i - 1]) { cnt++; if (cnt > maxn)maxn = cnt; } else cnt = 1 ; } cout << maxn << endl; return 0; }
------Input------
20 20
------Answer-----
985525432
------Your output-----
19