結果

問題 No.1777 万華鏡美術館
ユーザー ei1333333
提出日時 2021-12-06 13:38:41
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 330 bytes
コンパイル時間 1,948 ms
コンパイル使用メモリ 191,428 KB
最終ジャッジ日時 2025-01-26 05:36:37
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 1 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;

void yon() {
  cout << 4 << endl;
  exit(0);
}

void go() {
  cout << 5 << endl;
  exit(0);
}

// 1,5,6,7: 4
// 3: 5
int main() {
  int N, M;
  cin >> N >> M;
  if(N == 9) yon();
  if(N & 1) go();
  if(M & 1) go();
  // N % 2 == 0 and M % 2 == 0
  if(N % 10 <= 4) yon();
  throw 0;
}
0