結果
| 問題 | No.536 人工知能 |
| コンテスト | |
| ユーザー |
mosmos_21
|
| 提出日時 | 2017-06-30 23:36:50 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 1,000 ms |
| コード長 | 380 bytes |
| 記録 | |
| コンパイル時間 | 1,829 ms |
| コンパイル使用メモリ | 82,956 KB |
| 実行使用メモリ | 41,684 KB |
| 最終ジャッジ日時 | 2026-04-20 14:43:33 |
| 合計ジャッジ時間 | 3,196 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
package test;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
String string = in.nextLine();
if(string.endsWith("ai")){
System.out.println(string.substring(0, string.length() - 2) + "AI");
}else{
System.out.println(string + "-AI");
}
}
}
mosmos_21