結果

問題 No.632 穴埋め門松列
ユーザー moshiya02moshiya02
提出日時 2018-02-21 15:30:21
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 349 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 26,476 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-14 10:23:12
合計ジャッジ時間 642 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>

int main(void){
  char a[3];
  int i;

  scanf("%c %c %c", &a[0], &a[1], &a[2]);

  if(a[1] == '?' ){
    printf("14");
  }else if(a[0] == '?'){
    if(a[1] == '2')printf("4");
    else if(a[1] == '3') printf("1");
  }else if(a[2] == '?'){
    if(a[1] == '2')printf("4");
    else if(a[1] == '3')printf("1");
  }
  
  return 0;
}
0