Submission #95105

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