| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 7804 | jackae98 | 다각형 (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 <stdio.h>
long long int a,b;
long long int f(int c){
long long int k = (c*(c+1)/2)*2;
if(k>=2) k-=2;
return k;
}
int main(){
scanf("%lld %lld",&a,&b);
long long int ans = (f(b/2)-f((a-1)/2));
printf("%lld",ans);
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
