답안 #339165

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
339165 2020-12-24T18:05:46 Z ammar2000 Baloni (COCI15_baloni) C++17
0 / 100
906 ms 7404 KB
#include <bits/stdc++.h>

using namespace std;
int n,co;
int v[100000000];
int main()
{
    cin>>n;
    //v.resize(n);
    for (int i=0;i<n;i++)
        cin>>v[i];
    for (int i=0;i<n;i++)
        {int c=1;
            for (int z=i;z>=0;z--)
    {
        if (v[z]==v[i]+1)
            {c=0;
            //cout <<v[z]<<" ";
            break;}
    }
    co+=c;
        }
    cout <<co;
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Incorrect 2 ms 364 KB Output isn't correct
3 Incorrect 5 ms 384 KB Output isn't correct
4 Incorrect 6 ms 364 KB Output isn't correct
5 Incorrect 827 ms 7148 KB Output isn't correct
6 Incorrect 906 ms 7404 KB Output isn't correct
7 Incorrect 647 ms 6124 KB Output isn't correct
8 Incorrect 658 ms 6124 KB Output isn't correct
9 Incorrect 793 ms 6636 KB Output isn't correct
10 Incorrect 778 ms 6764 KB Output isn't correct