結果

問題 No.632 穴埋め門松列
ユーザー ElkElk
提出日時 2018-05-29 16:18:06
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 26,000 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-12 20:24:51
合計ジャッジ時間 672 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(){
    char num[3];
    int i, i_q;

    for(i = 0; i < 3; i++){
        scanf("%c", &num[i]);
        if(num[i] != '?'){
            i_q = i;
        }
    }
    if(i_q == 0){
        printf("4\n");
    }else if(i_q == 1){
        printf("14\n");
    }else if(i_q == 2){
        printf("4\n");
    }
    return 0;
}
0