結果

問題 No.536 人工知能
ユーザー jiro8719jiro8719
提出日時 2018-06-26 18:02:05
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-09-13 14:11:45
合計ジャッジ時間 1,610 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,276 KB
testcase_01 AC 80 ms
15,124 KB
testcase_02 AC 79 ms
15,072 KB
testcase_03 AC 78 ms
15,292 KB
testcase_04 WA -
testcase_05 AC 79 ms
15,300 KB
testcase_06 AC 79 ms
15,276 KB
testcase_07 AC 79 ms
15,120 KB
testcase_08 AC 78 ms
15,072 KB
testcase_09 AC 78 ms
15,052 KB
testcase_10 AC 78 ms
15,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

input = gets.chomp
if input[-2].include?("a") && input[-1].include?("i")
	unless input[0..-2].include?("ai")
		puts input.gsub("ai","AI")
	else
		puts "#{input}-AI"
	end
else
    puts "#{input}-AI"
end# your code goes here
0