結果
| 問題 | No.632 穴埋め門松列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-08 23:48:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 1,061 bytes |
| 記録 | |
| コンパイル時間 | 1,083 ms |
| コンパイル使用メモリ | 81,396 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 00:19:20 |
| 合計ジャッジ時間 | 1,540 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<string>
#include<stack>
#include<queue>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<cassert>
typedef long long int ll;
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define REP(i,n) for (int i=0;i<(n);i++)
#define EREP(i,n) for (int i=1;i<=(n);i++)
const int MOD = 1000000007;
const int INF = 1000000;
//#define EVEL 1
#ifdef EVEL
#define DEB(X) cout << #X << ":" <<X<<" " ;
#define TF(f) f ? cout<<"true " : cout<<"false ";
#define END cout<<"\n";
#else
#define DEB(X) {X=X;}
#define TF(f) {f=f;}
#define END {}
#endif
string S;
int A[3],B;
int main(){
ios::sync_with_stdio(false);
REP(i,3){
cin>>S;
if(S=="?"){B=i;}
else A[i]=S[0]-'0';
}
DEB(A[0])DEB(A[1])DEB(A[2])END
DEB(B)
if(B==0){
if(A[1]<A[2])cout<<"4";
else cout<<"1";
}
if(B==1){
cout<<"14";
}
if(B==2){
if(A[0]>A[1])cout<<"4";
else cout<<"1";
}
return 0;
}