結果

問題 No.536 人工知能
ユーザー FVRChanFVRChan
提出日時 2017-09-29 12:15:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 1,000 ms
コード長 324 bytes
コンパイル時間 2,261 ms
コンパイル使用メモリ 76,608 KB
実行使用メモリ 54,192 KB
最終ジャッジ日時 2024-04-27 16:16:23
合計ジャッジ時間 4,490 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
54,024 KB
testcase_01 AC 133 ms
54,084 KB
testcase_02 AC 135 ms
54,192 KB
testcase_03 AC 139 ms
54,144 KB
testcase_04 AC 134 ms
53,956 KB
testcase_05 AC 135 ms
54,008 KB
testcase_06 AC 136 ms
54,084 KB
testcase_07 AC 133 ms
54,132 KB
testcase_08 AC 132 ms
54,168 KB
testcase_09 AC 137 ms
54,068 KB
testcase_10 AC 133 ms
54,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		String s=sc.nextLine();
		if(s.substring(s.length()-2).equals("ai"))
			System.out.println(s.substring(0,s.length()-2)+"AI");
		else
			System.out.println(s+"-AI");
	}
}
0