結果

問題 No.1893 Cycle
ユーザー Today03
提出日時 2022-04-14 00:16:03
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 390 bytes
コンパイル時間 1,808 ms
コンパイル使用メモリ 191,628 KB
最終ジャッジ日時 2025-01-28 17:37:18
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

void _main() {
    int x, y;
    cin >> x >> y;
    if (max(x, y) - min(x, y) != 4) cout << (x + y) / 2 << '\n';
    else if (min(x, y) >= 4) cout << min(x, y) - 4 << '\n';
    else cout << (max(x, y) + 4) % 12 << '\n';
}



int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    // cout << fixed << setprecision(15);
    _main();
}
0