結果
問題 | No.632 穴埋め門松列 |
ユーザー | kpinkcat |
提出日時 | 2023-07-30 20:25:24 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 481 bytes |
コンパイル時間 | 1,048 ms |
コンパイル使用メモリ | 105,604 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-04-17 21:43:41 |
合計ジャッジ時間 | 1,575 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,812 KB |
testcase_01 | AC | 3 ms
6,940 KB |
testcase_02 | AC | 2 ms
6,940 KB |
testcase_03 | AC | 2 ms
6,940 KB |
testcase_04 | AC | 3 ms
6,940 KB |
testcase_05 | AC | 2 ms
6,940 KB |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<cctype> #include<set> #include<bitset> #include<math.h> #include<map> #include<queue> #include<iomanip> using namespace std; int main(){ string s1, s2, s3; cin >> s1 >> s2 >> s3; if (s1 == "?"){ if (s2 == "3") cout << 1 << endl; else cout << 4 << endl; } else if (s3 == "?"){ if (s1 == "2") cout << 1 << endl; else cout << 4 << endl; } else cout << 14 << endl; }