結果

問題 No.494 yukicoder
ユーザー N/AN/A
提出日時 2018-07-05 11:51:17
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 551 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 27,272 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-13 17:43:38
合計ジャッジ時間 825 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 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,504 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main(void) {
	int i;
	char S[10];

	scanf("%s", &S);
	
	for (i = 0; i < 9; i++) {
		if (S[i] == '?')
			break;
	}

	switch (i) {
	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");
	}

	return 0;
}
0