Submission #7799

#TimeUsernameProblemLanguageResultExecution timeMemory
7799whiteout다각형 (GA5_polygon)C++98
100 / 100
0 ms1672 KiB
#import<iostream> long long a,b,x;main(){std::cin>>a>>b;a++,a/=2,a--,b/=2;x=b*(b+1)-a*(a+1);if(a==0&&x)x-=2;std::cout<<x;}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...