結果
| 問題 |
No.536 人工知能
|
| ユーザー |
mosmos_21
|
| 提出日時 | 2017-06-30 23:36:50 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 112 ms / 1,000 ms |
| コード長 | 380 bytes |
| コンパイル時間 | 1,929 ms |
| コンパイル使用メモリ | 86,260 KB |
| 実行使用メモリ | 41,376 KB |
| 最終ジャッジ日時 | 2024-10-04 21:44:17 |
| 合計ジャッジ時間 | 3,693 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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