結果

問題 No.494 yukicoder
ユーザー ふっぴーふっぴー
提出日時 2017-03-24 22:25:21
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 546 bytes
コンパイル時間 585 ms
コンパイル使用メモリ 28,992 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-20 06:53:23
合計ジャッジ時間 1,310 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

int main(void){
	char s[20];
	int i,j;
	scanf("%s",s);
	for(i=0;i<10;i++){
		if(s[i]=='?'){
			j=i;
		}
	}
	switch(j){
	case 0:
		printf("y\n");
		break;
	case 1:
		printf("u\n");
		break;
	case 2:
		printf("k\n");
		break;
	case 3:
		printf("i\n");
		break;
	case 4:
		printf("c\n");
		break;
	case 5:
		printf("o\n");
		break;
	case 6:
		printf("d\n");
		break;
	case 7:
		printf("e\n");
		break;
	case 8:
		printf("r\n");
		break;
	}
	return 0;
}
0