Submission #95109

#TimeUsernameProblemLanguageResultExecution timeMemory
95109karlopuhBaloni (COCI15_baloni)C++14
0 / 100
191 ms1632 KiB
#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; }
#Verdict Execution timeMemoryGrader output
Fetching results...