結果

問題 No.1777 万華鏡美術館
ユーザー ei1333333ei1333333
提出日時 2021-12-06 13:36:19
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 298 bytes
コンパイル時間 1,870 ms
コンパイル使用メモリ 198,308 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-21 15:12:38
合計ジャッジ時間 3,099 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 RE -
testcase_02 AC 2 ms
4,380 KB
testcase_03 RE -
testcase_04 AC 2 ms
4,380 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 1 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,8,10,11: 5
int main() {
  int N, M;
  cin >> N >> M;
  if(N == 9) yon();
  if(N & 1) go();
  // N % 2 == 0
  if(M & 1) go();
  throw 0;
}
0