結果
| 問題 | No.632 穴埋め門松列 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-05-04 23:13:31 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 595 bytes | 
| コンパイル時間 | 611 ms | 
| コンパイル使用メモリ | 63,744 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 01:25:00 | 
| 合計ジャッジ時間 | 960 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
ソースコード
#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;
}
            
            
            
        