結果

問題 No.536 人工知能
ユーザー shinwisteriashinwisteria
提出日時 2018-02-16 22:08:08
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 4,810 ms
コンパイル使用メモリ 73,948 KB
実行使用メモリ 56,080 KB
最終ジャッジ日時 2023-09-05 05:03:28
合計ジャッジ時間 7,116 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,880 KB
testcase_01 AC 125 ms
55,872 KB
testcase_02 AC 124 ms
55,384 KB
testcase_03 AC 123 ms
55,532 KB
testcase_04 WA -
testcase_05 AC 129 ms
55,696 KB
testcase_06 AC 123 ms
55,912 KB
testcase_07 AC 124 ms
56,080 KB
testcase_08 AC 122 ms
55,764 KB
testcase_09 AC 124 ms
55,536 KB
testcase_10 AC 127 ms
55,540 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.indexOf("ai") == str.length()-2){
			System.out.println(str.replaceAll("ai", "AI"));
		}else{
			System.out.println(str + "-AI");
		}

	}

}
0