Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
292223 孟梓骞 【C4-7】统计天数 C++ 通过 100 1 MS 252 KB 253 2024-08-27 19:53:45

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,a,l=0,s=0,w=0; cin>>n; for(int i=1;i<=n;i++) { w=max(w,s); cin>>a; if(a>=l) { l=a; s++; } else { l=a; s=1; } } cout<<w+1; return 0; }


测评信息: