結果
| 問題 | No.536 人工知能 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-24 01:15:28 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 1,000 ms |
| コード長 | 485 bytes |
| 記録 | |
| コンパイル時間 | 4,164 ms |
| コンパイル使用メモリ | 82,284 KB |
| 実行使用メモリ | 39,552 KB |
| 最終ジャッジ日時 | 2026-05-15 19:23:31 |
| 合計ジャッジ時間 | 5,065 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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");
}
}