답안 #382806

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
382806 2021-03-28T08:40:55 Z Sashuk_keshuk Po (COCI21_po) C++14
10 / 70
42 ms 748 KB
#include <bits/stdc++.h>
using namespace std;

const int N = 1e5 + 228;
int n, a[N];

int main(){
    cin >> n;
    for (int i = 1; i <= n; i++) cin >> a[i];
    a[0] = 0;
    int kol = 0;
    for (int i = 1; i <= n; i++) if (a[i] > a[i - 1]) kol++;
    cout << kol;
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Incorrect 1 ms 364 KB Output isn't correct
3 Incorrect 1 ms 364 KB Output isn't correct
4 Incorrect 10 ms 492 KB Output isn't correct
5 Incorrect 15 ms 620 KB Output isn't correct
6 Correct 42 ms 748 KB Output is correct
7 Incorrect 42 ms 748 KB Output isn't correct