답안 #95105

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
95105 2019-01-27T11:16:21 Z karlopuh Baloni (COCI15_baloni) C++14
0 / 100
191 ms 4788 KB
#include <iostream>
using namespace std;

bool moze[1000001];
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 2 ms 252 KB Output isn't correct
2 Incorrect 2 ms 256 KB Output isn't correct
3 Incorrect 3 ms 376 KB Output isn't correct
4 Incorrect 3 ms 376 KB Output isn't correct
5 Incorrect 191 ms 4692 KB Output isn't correct
6 Incorrect 191 ms 4788 KB Output isn't correct
7 Incorrect 154 ms 3988 KB Output isn't correct
8 Incorrect 149 ms 3960 KB Output isn't correct
9 Incorrect 167 ms 4428 KB Output isn't correct
10 Incorrect 170 ms 4216 KB Output isn't correct