# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1112367 | vjudge1 | Baloni (COCI15_baloni) | C++17 | 212 ms | 26548 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a;
int b;
map<int,int> c;
long long int toplam=0;
scanf("%d",&a);
for(int i=0;i<a;i++){
scanf("%d",&b);
c[b+i]=1;
}
for(auto&f: c){
toplam+=f.second;
}
printf("%lld",toplam);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |