Submission #741482

#TimeUsernameProblemLanguageResultExecution timeMemory
741482rahidilbayramli다각형 (GA5_polygon)C++17
40 / 100
1 ms304 KiB
#include<bits/stdc++.h> #define ll long long #define ld long double #define pb push_back #define vl vector<ll> #define sl set<ll> #define pii pair<int, int> #define pll pair<ll, ll> #define all(v) v.begin(), v.end() using namespace std; int main() { ll a, b; cin >> a >> b; a = (a + 1) / 2, b /= 2; if(a == 1) a++; if(a > b) cout << "0\n"; cout << (b - a + 1) * (a + b) << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...