結果
| 問題 | 
                            No.536 人工知能
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tmsb
                         | 
                    
| 提出日時 | 2018-11-01 00:26:31 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 234 bytes | 
| コンパイル時間 | 223 ms | 
| コンパイル使用メモリ | 7,296 KB | 
| 実行使用メモリ | 12,416 KB | 
| 最終ジャッジ日時 | 2024-11-19 13:49:42 | 
| 合計ジャッジ時間 | 2,149 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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