結果
問題 | No.1893 Cycle |
ユーザー |
![]() |
提出日時 | 2022-04-14 00:18:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 2,143 ms |
コンパイル使用メモリ | 192,140 KB |
最終ジャッジ日時 | 2025-01-28 17:37:25 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#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 cout << (max(x, y) + 4) % 12 << '\n'; } int main() { ios::sync_with_stdio(false); cin.tie(0); // cout << fixed << setprecision(15); _main(); }