답안 #475177

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
475177 2021-09-21T10:41:30 Z Ahmed57 Po (COCI21_po) C++14
10 / 70
44 ms 1076 KB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    long long n,ans = 0;
    cin>>n;
    vector<long long>arr(n);
    for(int i=0;i<n;i++){
        cin>>arr[i];
        if(i&&arr[i]>arr[i-1])ans++;
    }
    cout<<ans+1<<"\n";
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 328 KB Output isn't correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Incorrect 1 ms 204 KB Output isn't correct
4 Incorrect 11 ms 692 KB Output isn't correct
5 Incorrect 16 ms 892 KB Output isn't correct
6 Correct 44 ms 1076 KB Output is correct
7 Incorrect 44 ms 1064 KB Output isn't correct