結果

問題 No.536 人工知能
ユーザー YOSHIYOSHI
提出日時 2021-03-18 22:17:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 456 bytes
コンパイル時間 3,462 ms
コンパイル使用メモリ 75,588 KB
実行使用メモリ 50,524 KB
最終ジャッジ日時 2024-04-28 12:48:41
合計ジャッジ時間 4,786 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
50,324 KB
testcase_01 AC 64 ms
50,384 KB
testcase_02 AC 63 ms
49,948 KB
testcase_03 AC 61 ms
50,524 KB
testcase_04 AC 61 ms
49,852 KB
testcase_05 AC 62 ms
50,416 KB
testcase_06 AC 63 ms
49,940 KB
testcase_07 AC 62 ms
49,972 KB
testcase_08 AC 61 ms
49,992 KB
testcase_09 AC 62 ms
50,372 KB
testcase_10 AC 63 ms
50,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000536_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String s = br.readLine();
		if("ai".equals(s.substring(s.length()-2))) {
			System.out.println(s.substring(0, s.length()-2) + "AI");
		} else {
			System.out.println(s + "-AI");
		}
	}
}
0