# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
2709 | gs13068 | 다각형 (GA5_polygon) | C++98 | 0 ms | 1088 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<cstdio>
long long get(long long x)
{
if(x==1)return 0;
return (x/2)*(x/2+1)-2;
}
int main()
{
long long a,b;
scanf("%lld%lld",&a,&b);
printf("%lld",get(b-1)-get(a-1));
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |