#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int a[n];
for(auto& it:a){
cin >> it;
}
if(a[0]>1){
cout << "NEM";
return 0;
}
for(int i=1; i<n; i++){
if(a[i]<a[i-1]){
cout << "NEM";
return 0;
}
if(a[i]>i+1){
cout << "NEM";
return 0;
}
}
cout << "IGEN";
return 0;
}
| Részfeladat | Összpont | Teszt | Verdikt | Idő | Memória | ||
|---|---|---|---|---|---|---|---|
| subtask1 | 0/0 | ||||||
| 1 | Részben helyes | 1ms | 316 KiB | ||||
| 2 | Részben helyes | 1ms | 508 KiB | ||||
| subtask2 | 2/8 | ||||||
| 3 | Részben helyes | 1ms | 316 KiB | ||||
| 4 | Részben helyes | 1ms | 316 KiB | ||||
| 5 | Részben helyes | 1ms | 316 KiB | ||||
| 6 | Részben helyes | 1ms | 508 KiB | ||||
| 7 | Elfogadva | 1ms | 316 KiB | ||||
| 8 | Részben helyes | 1ms | 316 KiB | ||||
| 9 | Részben helyes | 1ms | 508 KiB | ||||
| 10 | Részben helyes | 1ms | 316 KiB | ||||
| 11 | Elfogadva | 1ms | 316 KiB | ||||
| subtask3 | 4/16 | ||||||
| 12 | Részben helyes | 1ms | 316 KiB | ||||
| 13 | Részben helyes | 1ms | 316 KiB | ||||
| 14 | Részben helyes | 1ms | 316 KiB | ||||
| 15 | Elfogadva | 1ms | 500 KiB | ||||
| 16 | Elfogadva | 1ms | 316 KiB | ||||
| subtask4 | 8/32 | ||||||
| 17 | Részben helyes | 3ms | 316 KiB | ||||
| 18 | Részben helyes | 3ms | 316 KiB | ||||
| 19 | Részben helyes | 3ms | 316 KiB | ||||
| 20 | Részben helyes | 3ms | 316 KiB | ||||
| 21 | Részben helyes | 3ms | 316 KiB | ||||
| 22 | Részben helyes | 3ms | 500 KiB | ||||
| 23 | Elfogadva | 3ms | 316 KiB | ||||
| 24 | Elfogadva | 3ms | 316 KiB | ||||
| subtask5 | 11/44 | ||||||
| 25 | Részben helyes | 170ms | 2160 KiB | ||||
| 26 | Részben helyes | 170ms | 2260 KiB | ||||
| 27 | Részben helyes | 170ms | 2252 KiB | ||||
| 28 | Részben helyes | 170ms | 2132 KiB | ||||
| 29 | Részben helyes | 170ms | 2100 KiB | ||||
| 30 | Részben helyes | 170ms | 2164 KiB | ||||
| 31 | Részben helyes | 172ms | 2308 KiB | ||||
| 32 | Részben helyes | 170ms | 2336 KiB | ||||
| 33 | Részben helyes | 171ms | 2352 KiB | ||||
| 34 | Részben helyes | 170ms | 2312 KiB | ||||
| 35 | Részben helyes | 170ms | 2296 KiB | ||||
| 36 | Elfogadva | 186ms | 2100 KiB | ||||
| 37 | Elfogadva | 168ms | 2356 KiB | ||||