結果

問題 No.536 人工知能
ユーザー allgreen998allgreen998
提出日時 2017-07-14 16:32:28
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 29,312 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-16 19:48:41
合計ジャッジ時間 736 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	char id[13];
	int a, i;

	scanf("%s", id);

	for (int j= 0; j< 10; j++)
	{
		if (id[j] == '\0')
		{
			if (id[j - 1] == 'i'&&id[j - 2] == 'a')
			{
				id[j-2] = 'A';
				id[j-1] = 'I';
			}
			else
			{
				id[j] = '-';
				id[j + 1] = 'A';
				id[j + 2] = 'I';
				id[j + 3] = '\0';
			}
			break;
		}
	}

	printf("%s", id);
	return 0;
} 
0