結果
問題 |
No.632 穴埋め門松列
|
ユーザー |
|
提出日時 | 2018-03-28 02:11:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 413 ms |
コンパイル使用メモリ | 54,568 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-25 13:02:25 |
合計ジャッジ時間 | 912 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
#include<iostream> using namespace std; int main(){ char a, b, c; int ans; cin >> a >> b >> c; if(a=='?'){ if(b=='3'){ ans=1; }else{ ans=4; } }else if(a=='2'){ if(b=='3'){ ans=1; }else{ ans=14; } }else{ if(b=='2'){ ans=4; }else{ ans=14; } } cout << ans << endl; return 0; }