結果
| 問題 | No.536 人工知能 |
| コンテスト | |
| ユーザー |
tmsb
|
| 提出日時 | 2018-11-01 00:26:31 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-13 20:12:47 |
| 合計ジャッジ時間 | 1,701 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 5 |
コンパイルメッセージ
Syntax OK
ソースコード
def artificial_inteligence()
str = gets;
temp = []
n = str.size
temp << str[n - 2]
temp << str[n - 1]
if temp == 'ai'
puts "#{str[0..n-2]}#{temp}"
else
puts "#{str[0..n-2]}-AI"
end
end
artificial_inteligence()
tmsb