답안 #541716

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
541716 2022-03-24T09:01:37 Z mihaisabou Baloni (COCI15_baloni) C++11
0 / 100
198 ms 6324 KB
#include <bits/stdc++.h>

using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int> v(n + 1);
    for (int i{}; i < n; ++i) {
        cin >> v[i];
    }
    int nr = 1;
    for (int i{}; i < n; ++i) {
        if (v[i - 1] <= v[i] or v[i - 1] - 1 != v[i]) {
            ++nr;
        }
    }
    cout << nr;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Incorrect 1 ms 316 KB Output isn't correct
4 Incorrect 2 ms 340 KB Output isn't correct
5 Incorrect 181 ms 6196 KB Output isn't correct
6 Incorrect 198 ms 6324 KB Output isn't correct
7 Incorrect 169 ms 5716 KB Output isn't correct
8 Incorrect 154 ms 5576 KB Output isn't correct
9 Incorrect 176 ms 5836 KB Output isn't correct
10 Incorrect 191 ms 5932 KB Output isn't correct