結果

問題 No.632 穴埋め門松列
コンテスト
ユーザー 775_koari
提出日時 2019-11-28 11:51:09
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 1,000 ms
+ 310µs
コード長 490 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 797 ms
コンパイル使用メモリ 182,316 KB
実行使用メモリ 9,828 KB
最終ジャッジ日時 2026-09-25 10:51:14
合計ジャッジ時間 1,936 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
typedef long long ll;
using namespace std;
int main(){
  ios::sync_with_stdio(0);
  cin.tie(0);
  
  char s[3];
  rep(i,3){
    cin >> s[i];
  }
  if(s[0]=='?'){
    if(s[1]=='2'){
      cout << 4 << endl;
    }else{
      cout << 1 << endl;
    }
  }else if(s[1]=='?'){
    cout << 14 << endl;
  }else{
    if(s[0]=='2'){
      cout << 1 << endl;
    }else{
      cout << 4 << endl;
    }
  }
  return 0;
  return 0;
}
0