結果
| 問題 | No.536 人工知能 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-10-24 01:15:28 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 58 ms / 1,000 ms | 
| コード長 | 485 bytes | 
| コンパイル時間 | 6,470 ms | 
| コンパイル使用メモリ | 77,552 KB | 
| 実行使用メモリ | 37,304 KB | 
| 最終ジャッジ日時 | 2024-11-21 15:49:48 | 
| 合計ジャッジ時間 | 5,251 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class No536 {
	public static void main(String[] args) throws IOException{
		String str = new BufferedReader(new InputStreamReader(System.in)).readLine();
		if(str.endsWith("ai")){
			byte[] strByte = str.getBytes();
			strByte[strByte.length - 2] -= 32;
			strByte[strByte.length - 1] -= 32;
			System.out.println(new String(strByte));
		}
		else System.out.println(str + "-AI");
	}
}
            
            
            
        