Submission #5890

#TimeUsernameProblemLanguageResultExecution timeMemory
5890baneling100다각형 (GA5_polygon)C++98
0 / 100
0 ms1088 KiB
#include <stdio.h> long long A, B, Ans; int main(void) { scanf("%lld %lld",&A,&B); if(B>=4) { Ans=((B+1)/2)*((B+1)/2+1)-(A/2)*(A/2+1); if(A<=2) Ans-=2; } printf("%lld",Ans); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...