結果

問題 No.632 穴埋め門松列
ユーザー ttakano
提出日時 2018-06-05 21:33:37
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 572 bytes
コンパイル時間 1,333 ms
コンパイル使用メモリ 160,064 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-30 10:05:55
合計ジャッジ時間 1,677 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;
#define print(x) cout<<x<<endl;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define REP(i,a) for(int i=0;i<a;i++)
#define printall(n,array) {for(int i=0;i<n;i++){cout<<array[i]<<" ";}cout<<endl;}
#define U() cout<<endl;
typedef long long ll;
typedef pair<int, int> PI;
typedef pair<int, PI> V;
typedef vector<int> VE;
const ll mod = 1000000007; //10^9+7
 
int main(){
  string s[3];
  string t = "14";
  REP(i, 3){cin >> s[i];}
  if(s[1] == "?"){print(t);}
  else if(s[1] == "2"){print("4");}
  else if(s[1] == "3"){print("1");}
}
0