Submission #5893

#TimeUsernameProblemLanguageResultExecution timeMemory
5893baneling100다각형 (GA5_polygon)C++98
100 / 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/2)*(B/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...