結果

問題 No.536 人工知能
ユーザー bellbell
提出日時 2021-02-20 20:27:42
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 2,223 ms
コンパイル使用メモリ 76,428 KB
実行使用メモリ 57,504 KB
最終ジャッジ日時 2023-10-19 00:57:43
合計ジャッジ時間 4,380 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
57,416 KB
testcase_01 AC 129 ms
57,308 KB
testcase_02 AC 130 ms
57,312 KB
testcase_03 AC 128 ms
57,364 KB
testcase_04 WA -
testcase_05 AC 131 ms
57,316 KB
testcase_06 AC 126 ms
57,256 KB
testcase_07 AC 130 ms
57,384 KB
testcase_08 AC 124 ms
57,260 KB
testcase_09 AC 132 ms
57,504 KB
testcase_10 AC 131 ms
57,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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