結果

問題 No.536 人工知能
ユーザー Amanita2016Amanita2016
提出日時 2017-07-01 11:39:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 146 ms / 1,000 ms
コード長 394 bytes
コンパイル時間 2,761 ms
コンパイル使用メモリ 76,572 KB
実行使用メモリ 54,696 KB
最終ジャッジ日時 2024-04-15 09:55:18
合計ジャッジ時間 4,612 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
53,848 KB
testcase_01 AC 139 ms
54,120 KB
testcase_02 AC 140 ms
54,100 KB
testcase_03 AC 141 ms
54,124 KB
testcase_04 AC 137 ms
54,256 KB
testcase_05 AC 146 ms
54,304 KB
testcase_06 AC 143 ms
54,304 KB
testcase_07 AC 140 ms
54,696 KB
testcase_08 AC 141 ms
54,284 KB
testcase_09 AC 139 ms
54,284 KB
testcase_10 AC 145 ms
54,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String ID = sc.nextLine();
		String AIName  = "";
		if(ID.substring(ID.length()-2).equals("ai")){
			AIName = ID.substring(0,ID.length()-2) + "AI";
		}else{
			AIName = ID + "-AI";
		}
	    System.out.println(AIName);
	}

}
0