結果

問題 No.536 人工知能
ユーザー neko_the_shadowneko_the_shadow
提出日時 2017-10-03 23:44:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 1,000 ms
コード長 363 bytes
コンパイル時間 761 ms
コンパイル使用メモリ 102,784 KB
実行使用メモリ 26,416 KB
最終ジャッジ日時 2024-04-27 22:57:39
合計ジャッジ時間 1,738 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,108 KB
testcase_01 AC 28 ms
26,288 KB
testcase_02 AC 28 ms
26,288 KB
testcase_03 AC 28 ms
26,280 KB
testcase_04 AC 27 ms
24,360 KB
testcase_05 AC 28 ms
26,160 KB
testcase_06 AC 28 ms
26,416 KB
testcase_07 AC 28 ms
24,412 KB
testcase_08 AC 28 ms
26,328 KB
testcase_09 AC 28 ms
26,032 KB
testcase_10 AC 28 ms
26,280 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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);

    }
} 
0