結果
| 問題 | No.536 人工知能 | 
| コンテスト | |
| ユーザー |  neko_the_shadow | 
| 提出日時 | 2017-10-03 23:44:16 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 29 ms / 1,000 ms | 
| コード長 | 363 bytes | 
| コンパイル時間 | 931 ms | 
| コンパイル使用メモリ | 109,936 KB | 
| 実行使用メモリ | 26,412 KB | 
| 最終ジャッジ日時 | 2024-11-16 06:10:03 | 
| 合計ジャッジ時間 | 2,017 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
public class Program
{
    public static void Main(string[] args)
    {
        var name = System.Console.ReadLine();
        string id;
        if (name.EndsWith("ai"))
        {
            id = name.Substring(0, name.Length - 2) + "AI";
        }
        else
        {
            id = name + "-AI";
        }
        System.Console.WriteLine(id);
    }
} 
            
            
            
        