結果

問題 No.1893 Cycle
ユーザー Sapph_cppSapph_cpp
提出日時 2022-06-30 14:03:01
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 656 bytes
コンパイル時間 1,681 ms
コンパイル使用メモリ 164,820 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-03 10:24:17
合計ジャッジ時間 2,253 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 WA -
testcase_04 AC 1 ms
5,376 KB
testcase_05 WA -
testcase_06 AC 2 ms
5,376 KB
testcase_07 WA -
testcase_08 AC 2 ms
5,376 KB
testcase_09 WA -
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 1 ms
5,376 KB
testcase_12 AC 2 ms
5,376 KB
testcase_13 AC 1 ms
5,376 KB
testcase_14 AC 2 ms
5,376 KB
testcase_15 AC 1 ms
5,376 KB
testcase_16 AC 2 ms
5,376 KB
testcase_17 WA -
testcase_18 AC 1 ms
5,376 KB
testcase_19 WA -
testcase_20 AC 1 ms
5,376 KB
testcase_21 WA -
testcase_22 AC 2 ms
5,376 KB
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Vi = vector<int>;
using Vd = vector<double>;
using Vs = vector<string>;
using Vc = vector<char>;
using Vll = vector<ll>;
using Pii = pair<int, int>;
using Pdd = pair<double, double>;
using Pll = pair<ll, ll>;
using Pis = pair<int, string>;
using Psi = pair<string, int>;
using Pss = pair<string, string>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n, m) for (int i = (int)(n); i <= (int)(m); i++)


int main() {
    int x, y;
    cin >> x >> y;
    int a = (x + y) / 2;
    if (a < 6) cout << a + 6 << endl;
    else cout << a - 6 << endl;
    return 0;
}
0