結果

問題 No.536 人工知能
ユーザー Maisu
提出日時 2017-06-30 23:26:16
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 2,917 ms
コンパイル使用メモリ 107,044 KB
実行使用メモリ 25,688 KB
最終ジャッジ日時 2024-10-04 21:32:40
合計ジャッジ時間 2,792 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
public class Program {
  public static void Main() {
    string name = Console.ReadLine();
    if (name.Substring(name.Length-2, 2) == "ai") {
      Console.WriteLine(name.Substring(0, name.Length-2) + "AI");
    } else {
      Console.WriteLine(name + "-ai");
    }
  }
}
0