結果

問題 No.632 穴埋め門松列
ユーザー beet
提出日時 2018-01-19 21:21:58
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 333 bytes
コンパイル時間 1,613 ms
コンパイル使用メモリ 157,688 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 12:09:01
合計ジャッジ時間 1,870 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using Int = long long;
signed main(){
  char c1,c2,c3;
  cin>>c1>>c2>>c3;
  if(c1=='?'){
    if(c2=='2') cout<<"4"<<endl;
    else cout<<"1"<<endl;
  }
  if(c2=='?'){
    cout<<"14"<<endl;
  }
  if(c3=='?'){
    if(c2=='2') cout<<"4"<<endl;
    else cout<<"1"<<endl;
  }
  
  return 0;
}
0