Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
89713 张曦 找错误 C++ Accepted 15 MS 660 KB 312 2024-09-04 20:31:22

Tests(10/10):


Code:

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