結果

問題 No.536 人工知能
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 17:26:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 1,000 ms
コード長 278 bytes
コンパイル時間 2,020 ms
コンパイル使用メモリ 72,180 KB
実行使用メモリ 56,048 KB
最終ジャッジ日時 2023-10-11 12:19:14
合計ジャッジ時間 4,214 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,008 KB
testcase_01 AC 122 ms
55,904 KB
testcase_02 AC 121 ms
55,800 KB
testcase_03 AC 119 ms
55,704 KB
testcase_04 AC 120 ms
55,720 KB
testcase_05 AC 121 ms
55,844 KB
testcase_06 AC 121 ms
55,892 KB
testcase_07 AC 119 ms
56,048 KB
testcase_08 AC 120 ms
55,980 KB
testcase_09 AC 120 ms
55,696 KB
testcase_10 AC 122 ms
55,892 KB
権限があれば一括ダウンロードができます

ソースコード

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