Submission #2802

#TimeUsernameProblemLanguageResultExecution timeMemory
2802ksmin1114다각형 (GA5_polygon)C++98
0 / 100
0 ms1088 KiB
#include<stdio.h> int main(){ long long int n,m,i,t=0; scanf("%lld %lld",&n,&m); if(n%2==1)n++; if(n==1||n==2)n=4; if(m%2==1)m--; if(n==m)printf("%d",n); printf("%lld",(m-n+2)*(n+m)/4); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...