結果

問題 No.632 穴埋め門松列
ユーザー moshiya02
提出日時 2018-02-21 15:30:03
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 1,348 ms
コンパイル使用メモリ 26,496 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-16 05:18:19
合計ジャッジ時間 847 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

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

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

  printf("%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