Submission #7878

#TimeUsernameProblemLanguageResultExecution timeMemory
7878comet다각형 (GA5_polygon)C++98
0 / 100
0 ms1672 KiB
#include<iostream> int main(){ int a,b; std::cin>>a>>b; if(a%2)a++; if(b%2)b--; if(a<4)a=4; if(b<4)std::cout<<"0"; else if(a==b)std::cout<<a; else std::cout<<(a+b)*(b-a+2)/2; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...