結果

問題 No.536 人工知能
ユーザー saran1591saran1591
提出日時 2018-07-19 15:58:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 48 ms / 1,000 ms
コード長 425 bytes
コンパイル時間 2,386 ms
コンパイル使用メモリ 99,496 KB
実行使用メモリ 22,572 KB
最終ジャッジ日時 2023-08-25 14:23:11
合計ジャッジ時間 3,666 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
20,628 KB
testcase_01 AC 46 ms
22,508 KB
testcase_02 AC 46 ms
22,484 KB
testcase_03 AC 45 ms
20,552 KB
testcase_04 AC 46 ms
20,392 KB
testcase_05 AC 48 ms
22,552 KB
testcase_06 AC 43 ms
20,528 KB
testcase_07 AC 44 ms
20,520 KB
testcase_08 AC 44 ms
22,572 KB
testcase_09 AC 46 ms
18,492 KB
testcase_10 AC 45 ms
18,328 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using static System.Console;

namespace App
{
    class Prog
    {
        static void Main()
        {
            string name = ReadLine();
            if (name.Substring(name.Length - 2 , 2) == "ai")
            {
                name = name.Substring(0, name.Length - 2) + "AI";
            }
            else
            {
                name = name + "-AI";
            }
            WriteLine(name);
        }
    }
}
0