結果

問題 No.536 人工知能
ユーザー shinwisteriashinwisteria
提出日時 2018-02-16 22:06:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 8,373 ms
コンパイル使用メモリ 80,408 KB
実行使用メモリ 57,644 KB
最終ジャッジ日時 2023-09-05 04:51:18
合計ジャッジ時間 8,768 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
53,624 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 133 ms
55,744 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 124 ms
55,636 KB
testcase_07 WA -
testcase_08 AC 138 ms
55,808 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

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.indexOf("ai") == str.length()-2){
			System.out.println(str.replaceAll("ai", "AI"));
		}else{
			System.out.println(str + "AI");
		}

	}

}
0