# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
2713 | 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<2)return 0;
return (x/2)*(x/2+1)-2;
}
int main()
{
long long a,b;
scanf("%lld%lld",&a,&b);
printf("%lld",get(b)-get(a));
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |