Submission #5892

#TimeUsernameProblemLanguageResultExecution timeMemory
5892baneling100다각형 (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-1)/2)*((A-1)/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...