結果

問題 No.1893 Cycle
ユーザー zezero
提出日時 2022-04-08 21:40:05
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 528 bytes
コンパイル時間 2,876 ms
コンパイル使用メモリ 159,812 KB
最終ジャッジ日時 2025-01-28 15:58:31
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <map>
#include <set>
#include <queue>
#include <iomanip>
#include <cstring>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
typedef long long ll;
#define rep(i,n) for (int i = 0; i < int(n);i++)

int main(){
  int a,b;
  cin >> a >> b;
  if (min(a,b)+4 == max(a,b)){
    cout << (max(a,b)+4)%12 << endl;
  }
  else if ((min(a,b) + 8)%12 == max(a,b)){
    cout << min(a,b)+4 << endl; 
  }
  return 0;
}
0