結果

問題 No.536 人工知能
ユーザー shinwisteriashinwisteria
提出日時 2018-02-16 22:10:01
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 4,543 ms
コンパイル使用メモリ 74,252 KB
実行使用メモリ 55,800 KB
最終ジャッジ日時 2023-09-05 05:09:19
合計ジャッジ時間 7,048 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,472 KB
testcase_01 AC 130 ms
55,512 KB
testcase_02 AC 128 ms
55,504 KB
testcase_03 AC 124 ms
55,376 KB
testcase_04 WA -
testcase_05 AC 128 ms
55,800 KB
testcase_06 AC 123 ms
55,616 KB
testcase_07 AC 127 ms
55,508 KB
testcase_08 AC 122 ms
55,664 KB
testcase_09 AC 130 ms
55,688 KB
testcase_10 AC 128 ms
55,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con536 {

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

	}

}
0