結果
| 問題 | 
                            No.1893 Cycle
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-01-17 10:01:57 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 357 bytes | 
| コンパイル時間 | 4,019 ms | 
| コンパイル使用メモリ | 251,428 KB | 
| 最終ジャッジ日時 | 2025-01-27 12:50:15 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
#define all(x) x.begin(), x.end()
#define rep(i, n) for (int i = 0; i < n; i++)
int main(void)
{
    ll x, y, z;
    cin >> x >> y;
    if((x + 8) % 12 == y) z = (x + 4) % 12;
    else z = (x + 8) % 12;
    cout << z << endl;
    return 0;
}