結果
| 問題 |
No.536 人工知能
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-16 22:10:01 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 358 bytes |
| コンパイル時間 | 3,905 ms |
| コンパイル使用メモリ | 76,748 KB |
| 実行使用メモリ | 41,436 KB |
| 最終ジャッジ日時 | 2024-06-23 01:41:06 |
| 合計ジャッジ時間 | 5,722 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 1 |
ソースコード
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.replaceAll("ai", "AI"));
}else{
System.out.println(str + "-AI");
}
}
}