結果

問題 No.632 穴埋め門松列
ユーザー Yut176Yut176
提出日時 2019-06-06 02:12:54
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 680 bytes
コンパイル時間 1,332 ms
コンパイル使用メモリ 81,236 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 01:10:43
合計ジャッジ時間 1,570 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
using namespace std;
long long mod = 1e9 + 7;

int main(void) {
  char c[3];
  cin >> c[0] >> c[1] >> c[2];
  if(c[0] == '?') {
    if(c[1] == '2') {
      cout << 4 << endl;
    }else{
      cout << 1 << endl;
    }
  }
  if(c[1] == '?') {
    if(c[0] == '2') {
      cout << 14 << endl;
    }else{
      cout << 14 << endl;
    }
  }
  if(c[2] == '?') {
    if(c[0] == '2') {
      cout << 1 << endl;
    }else{
      cout << 4 << endl;
    }
  }

  return 0;
}



// EOF
0