結果

問題 No.536 人工知能
ユーザー iwltwm
提出日時 2018-01-19 00:40:40
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 259 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 27,776 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-24 08:05:05
合計ジャッジ時間 748 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>
char s[14];
int main(void){
	scanf("%s",s);
	int len=strlen(s);
	if (s[len-2]=='a' && s[len-1]=='i'){
		s[len-2]='A';
		s[len-1]='I';
	}else{
		s[len]='-';
		s[len+1]='A';
		s[len+2]='I';
	}
	printf("%s",s);
	return 0;
}
0