結果

問題 No.494 yukicoder
ユーザー nxterunxteru
提出日時 2017-03-26 12:13:51
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 503 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 27,504 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-20 10:58:03
合計ジャッジ時間 757 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
int main(void){
    int i;
    char a;
  for(i=0;i<10;i++){
     if(getchar()=='?')
     break;
  }
  switch(i){
      case 0:
     a='y';
     break;
      case 1:
     a='u';
     break;
      case 2:
     a='k';
     break;
      case 3:
     a='i';
     break;
      case 4:
     a='c';
     break;
      case 5:
     a='o';
     break;
      case 6:
     a='d';
     break;
      case 7:
     a='e';
     break;
      default:
     a='r';
     break;
     
  }printf("%c\n",a);
}
0