Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134265 袁龙浩 找错误 C++ Wrong Answer 19 MS 468 KB 521 2025-10-26 14:48:42

Tests(3/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[50001]={0},n,max=3,x=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=2;i<=n;i++){ if(a[i]<max){ x++; } else{ max=a[i]; } } cout<<x; return 0; }


Run Info:

------Input------
100 51 40 24 88 38 23 31 131 104 71 224 51 297 276 125 19 89 270 66 45 82 197 149 384 315 469 490 586 405 275 224 49 196 347 528 155 468 251 676 714 468 166 94 772 239 581 865 192 790 836 773 165 929 630 652 952 1035 719 618 386 386 1089 233 257 181 466 1131 395 41 517 1181 630 952 1199 822 1025 1288 644 198 1133 964 61 827 719 205 271 636 1309 708 1142 1399 1416 1477 1561 292 1627 1512 491 1379 1163
------Answer-----
73
------Your output-----
72