結果

問題 No.536 人工知能
ユーザー yocto_sothothyocto_sothoth
提出日時 2020-09-25 23:37:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 76 bytes
コンパイル時間 1,097 ms
コンパイル使用メモリ 11,180 KB
実行使用メモリ 15,380 KB
最終ジャッジ日時 2023-09-10 17:11:13
合計ジャッジ時間 3,320 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,136 KB
testcase_01 AC 82 ms
15,140 KB
testcase_02 AC 82 ms
15,304 KB
testcase_03 AC 82 ms
15,340 KB
testcase_04 AC 82 ms
15,376 KB
testcase_05 AC 83 ms
15,380 KB
testcase_06 AC 81 ms
15,164 KB
testcase_07 AC 81 ms
15,112 KB
testcase_08 AC 80 ms
15,160 KB
testcase_09 AC 81 ms
15,292 KB
testcase_10 AC 81 ms
15,168 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp

puts s[-2, 2] == 'ai' ? s[0, s.size - 2] + 'AI' : s + '-AI'
0