#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int say=0;
int a[n];
for(int i=0;i<n;i++){
cin>>a[i];
}
int mx=0;
for(int i=0;i<n;i++){
if(mx<a[i]){
mx=a[i];
say++;
}
}
cout<<say;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
5 |
Incorrect |
104 ms |
3512 KB |
Output isn't correct |
6 |
Incorrect |
116 ms |
3664 KB |
Output isn't correct |
7 |
Incorrect |
85 ms |
3152 KB |
Output isn't correct |
8 |
Incorrect |
85 ms |
3252 KB |
Output isn't correct |
9 |
Incorrect |
96 ms |
3408 KB |
Output isn't correct |
10 |
Incorrect |
96 ms |
3408 KB |
Output isn't correct |