結果

問題 No.536 人工知能
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 17:25:33
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 1,983 ms
コンパイル使用メモリ 73,760 KB
実行使用メモリ 58,052 KB
最終ジャッジ日時 2023-10-11 12:19:03
合計ジャッジ時間 4,238 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,836 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 127 ms
53,724 KB
testcase_04 AC 121 ms
55,740 KB
testcase_05 WA -
testcase_06 AC 121 ms
56,056 KB
testcase_07 WA -
testcase_08 AC 121 ms
56,132 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		String s = sc.next();
		if (s.endsWith("ai")) {
			System.out.println(s.substring(0,s.length()-2)+"AI");
		}
		else System.out.println(s+"AI");
		
	}
}
0