結果

問題 No.1777 万華鏡美術館
ユーザー ei1333333ei1333333
提出日時 2021-12-06 13:38:55
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 327 bytes
コンパイル時間 2,184 ms
コンパイル使用メモリ 197,980 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-22 03:35:21
合計ジャッジ時間 2,979 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

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();
  go();
}
0