結果

問題 No.536 人工知能
ユーザー mosmos_21mosmos_21
提出日時 2017-06-30 23:36:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 380 bytes
コンパイル時間 2,170 ms
コンパイル使用メモリ 76,080 KB
実行使用メモリ 54,304 KB
最終ジャッジ日時 2024-04-15 07:10:52
合計ジャッジ時間 4,310 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
53,944 KB
testcase_01 AC 136 ms
54,304 KB
testcase_02 AC 134 ms
54,140 KB
testcase_03 AC 134 ms
53,936 KB
testcase_04 AC 136 ms
54,188 KB
testcase_05 AC 132 ms
53,940 KB
testcase_06 AC 136 ms
53,972 KB
testcase_07 AC 133 ms
54,024 KB
testcase_08 AC 132 ms
54,288 KB
testcase_09 AC 131 ms
53,920 KB
testcase_10 AC 134 ms
54,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package test;

import java.util.Scanner;

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