結果

問題 No.632 穴埋め門松列
ユーザー kpinkcat
提出日時 2023-07-30 20:25:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 481 bytes
コンパイル時間 675 ms
コンパイル使用メモリ 104,164 KB
最終ジャッジ日時 2025-02-15 21:04:56
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;

int main(){
    string s1, s2, s3;
    cin >> s1 >> s2 >> s3;
    if (s1 == "?"){
        if (s2 == "3") cout << 1 << endl;
        else cout << 4 << endl;
    } else if (s3 == "?"){
        if (s1 == "2") cout << 1 << endl;
        else cout << 4 << endl;
    } else cout << 14 << endl;
}
0