| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72362 | sh25_ganzy | 最长平台 | C++ | 运行超时 | 1000 MS | 236 KB | 361 | 2025-10-31 16:37:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,l,lmax=0; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; if(a[i]==a[i-1]&&i!=0){ l++; }else if(i=0){ l=1; }else{ l=0; } lmax=max(lmax,l); } cout<<lmax; return 0; }