답안 #741482

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
741482 2023-05-14T08:16:11 Z rahidilbayramli 다각형 (GA5_polygon) C++17
40 / 100
1 ms 304 KB
#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";
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 304 KB Output is correct
3 Correct 1 ms 300 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 0 ms 304 KB Output is correct