結果
問題 |
No.632 穴埋め門松列
|
ユーザー |
![]() |
提出日時 | 2019-02-10 15:40:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 494 bytes |
コンパイル時間 | 530 ms |
コンパイル使用メモリ | 63,452 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 10:47:37 |
合計ジャッジ時間 | 1,005 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
#include<iostream> #include<stdlib.h> using namespace std; int main() { char a[3]; int cnt=0; while(cnt!=3){ cin>>a[cnt]; cnt++; } if(a[0]=='?'){ if(a[1]=='2'){ cout<<4<<endl; } else { cout<<1<<endl; } } else if(a[1]=='?'){ cout<<14<<endl; } else if(a[2]=='?'){ if(a[1]=='3'){ cout<<1<<endl;} else { cout<<4<<endl;} } else { cout<<4<<endl;} return EXIT_SUCCESS; }