結果

問題 No.536 人工知能
ユーザー shinwisteria
提出日時 2018-02-16 22:11:28
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 370 bytes
コンパイル時間 3,384 ms
コンパイル使用メモリ 76,764 KB
実行使用メモリ 41,440 KB
最終ジャッジ日時 2024-06-23 01:45:30
合計ジャッジ時間 5,557 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

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

	}

}
0