結果

問題 No.494 yukicoder
コンテスト
ユーザー N/A
提出日時 2018-07-05 11:51:17
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 551 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 139 ms
コンパイル使用メモリ 37,844 KB
最終ジャッジ日時 2026-02-22 01:19:28
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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