Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7037 张育斌 找错误 C++ Wrong Answer 0 MS 256 KB 440 2025-03-30 13:54:11

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[50010]; int cnt,n,k; k=1; for(int i=2;i<=n;i++){ if(a[i]<a[k]){ cnt++; } else k=i; } cout<<cnt; return 0; }


Run Info:

------Input------
5 10 52 121 46 97
------Answer-----
2
------Your output-----
-116537576