Submission #95107

#TimeUsernameProblemLanguageResultExecution timeMemory
95107karlopuhBaloni (COCI15_baloni)C++14
0 / 100
187 ms1144 KiB
#include <iostream> using namespace std; bool moze[10000001]; 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...