結果
問題 | No.1777 万華鏡美術館 |
ユーザー |
![]() |
提出日時 | 2021-12-06 13:38:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 327 bytes |
コンパイル時間 | 1,990 ms |
コンパイル使用メモリ | 192,112 KB |
最終ジャッジ日時 | 2025-01-26 05:36:44 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 1 |
ソースコード
#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(); }