結果
問題 | No.632 穴埋め門松列 |
ユーザー | masakiGit |
提出日時 | 2018-05-04 23:13:31 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 595 bytes |
コンパイル時間 | 518 ms |
コンパイル使用メモリ | 64,012 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-10 09:57:44 |
合計ジャッジ時間 | 1,103 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 2 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 2 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 2 ms
4,376 KB |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string s1, s2, s3; cin >> s1 >> s2 >> s3; if (s1 == "?" && s2 == "2") { //?23の入力なら4 cout << "4" << endl; } else if (s1 == "?" && s2 == "3") { //?32 cout << "1" << endl; } else if (s2 == "?" && s1 == "2") { //2?3 ->>213 243 cout << "14" << endl; } else if (s2 == "?" && s1 == "3") { //3?2 ->> 312 342 cout << "14" << endl; } else if (s3 == "?" && s1 == "2") { //23? cout << "1" << endl; } else if (s3 == "?" && s1 == "3") { //32? cout << "4" << endl; } return 0; }