답안 #95109

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
95109 2019-01-27T11:26:11 Z karlopuh Baloni (COCI15_baloni) C++14
0 / 100
191 ms 1632 KB
#include <bits/stdc++.h>
using namespace std;

vector <bool> moze(10000001,false);
int brojac,n;

int main(){
	cin>>n;
	for(int i=0;i<n;i++){
		int broj;
		cin>>broj;
		if(!moze[broj+i]){
			brojac++;
			moze[broj+i]=true;		
		}
	}
	
	cout<<brojac;
	
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 1528 KB Output isn't correct
2 Incorrect 3 ms 1528 KB Output isn't correct
3 Incorrect 3 ms 1528 KB Output isn't correct
4 Incorrect 3 ms 1528 KB Output isn't correct
5 Incorrect 191 ms 1528 KB Output isn't correct
6 Incorrect 191 ms 1632 KB Output isn't correct
7 Incorrect 154 ms 1528 KB Output isn't correct
8 Incorrect 153 ms 1528 KB Output isn't correct
9 Incorrect 174 ms 1596 KB Output isn't correct
10 Incorrect 169 ms 1528 KB Output isn't correct