Submission #2817

#TimeUsernameProblemLanguageResultExecution timeMemory
2817gs13105다각형 (GA5_polygon)C++98
100 / 100
0 ms1088 KiB
#include <stdio.h> int main() { long long a,b,n,s; scanf("%lld%lld",&a,&b); if(a%2==1) a++; n=(b-a)/2+1; s=n*(a+n-1); if(a==2) s-=2; printf("%lld",s); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...