Submission #3174

#TimeUsernameProblemLanguageResultExecution timeMemory
3174myungwoo다각형 (GA5_polygon)C++98
100 / 100
0 ms1672 KiB
#include <iostream> using namespace std; typedef long long lld; lld A,B; int main() { cin >> A >> B; if (A&1) A++; if (B&1) B--; if (A < 3) A = 4; if (A <= B) cout << (A+B)*((B-A)/2+1)/2 << endl; else cout << "0\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...