Submission #7821

#TimeUsernameProblemLanguageResultExecution timeMemory
7821gs14092다각형 (GA5_polygon)C++98
100 / 100
0 ms1088 KiB
#import<cstdio> long long x,y,r; main() { scanf("%lld%lld",&x,&y); if(x<3&&1<y)r-=2; x=(x+1)/2; y/=2; r+=y*y+y-x*x+x;printf("%lld",r);}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...