結果

問題 No.536 人工知能
ユーザー uafr_csuafr_cs
提出日時 2017-10-28 16:41:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 550 bytes
コンパイル時間 2,250 ms
コンパイル使用メモリ 77,672 KB
実行使用メモリ 41,812 KB
最終ジャッジ日時 2024-05-01 21:03:03
合計ジャッジ時間 4,199 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
41,388 KB
testcase_01 AC 109 ms
41,380 KB
testcase_02 AC 125 ms
41,208 KB
testcase_03 AC 119 ms
41,124 KB
testcase_04 AC 121 ms
41,444 KB
testcase_05 AC 123 ms
41,812 KB
testcase_06 AC 118 ms
41,396 KB
testcase_07 AC 100 ms
41,200 KB
testcase_08 AC 120 ms
40,924 KB
testcase_09 AC 121 ms
41,204 KB
testcase_10 AC 117 ms
41,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Scanner;

public class Main {
	
	public static long MOD = 1000000007;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final String name = sc.next();
		
		if(name.endsWith("ai")){
			System.out.println(name.substring(0, name.length() - 2) + "AI");
		}else{
			System.out.println(name + "-AI");
		}
	}
}
0