# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
974345 | sleepntsheep | Savrsen (COCI17_savrsen) | C11 | 969 ms | 78684 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<stdio.h>
#include<stdlib.h>
int j,i,a,b;long long z,f[10000001];
int main()
{
scanf("%d%d",&a,&b);
for(i=1;i<=b;++i)for(j=i+i;j<=b;j+=i)f[j]+=i;
for(i=a;i<=b;++i)z+=abs(f[i]-i);
printf("%lld",z);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |