Submission #2873

#TimeUsernameProblemLanguageResultExecution timeMemory
2873pl0892029다각형 (GA5_polygon)C++98
60 / 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("%I64d",(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...