Submission #2874

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