답안 #95292

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

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

int main(){
	cin>>n;
	for(long long int i=1;i<=n;i++){
		long long int broj;
		cin>>broj;
		if(moze[broj+i]==false){
			moze[broj+i]=true;
			brojac++;
		}
	}
	
	cout<<brojac;
	
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 1532 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 202 ms 5156 KB Output isn't correct
6 Incorrect 193 ms 5028 KB Output isn't correct
7 Incorrect 158 ms 4464 KB Output isn't correct
8 Incorrect 153 ms 4300 KB Output isn't correct
9 Incorrect 171 ms 4728 KB Output isn't correct
10 Incorrect 171 ms 4728 KB Output isn't correct