結果

問題 No.536 人工知能
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-10-24 01:15:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 58 ms / 1,000 ms
コード長 485 bytes
コンパイル時間 4,033 ms
コンパイル使用メモリ 80,188 KB
実行使用メモリ 50,576 KB
最終ジャッジ日時 2024-05-01 11:40:23
合計ジャッジ時間 4,553 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
50,020 KB
testcase_01 AC 57 ms
50,288 KB
testcase_02 AC 58 ms
50,264 KB
testcase_03 AC 52 ms
50,228 KB
testcase_04 AC 51 ms
49,936 KB
testcase_05 AC 57 ms
50,292 KB
testcase_06 AC 51 ms
49,908 KB
testcase_07 AC 58 ms
50,452 KB
testcase_08 AC 52 ms
50,208 KB
testcase_09 AC 58 ms
50,576 KB
testcase_10 AC 57 ms
50,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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");
	}
}
0