Submission #14822

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