結果

問題 No.536 人工知能
ユーザー CroweaCrowea
提出日時 2019-01-24 00:16:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 313 bytes
コンパイル時間 877 ms
コンパイル使用メモリ 65,048 KB
実行使用メモリ 23,392 KB
最終ジャッジ日時 2023-10-14 09:33:33
合計ジャッジ時間 2,471 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
23,392 KB
testcase_01 AC 73 ms
19,356 KB
testcase_02 AC 72 ms
21,332 KB
testcase_03 AC 74 ms
21,336 KB
testcase_04 AC 74 ms
23,328 KB
testcase_05 AC 74 ms
23,224 KB
testcase_06 AC 75 ms
23,392 KB
testcase_07 AC 74 ms
21,360 KB
testcase_08 AC 74 ms
21,368 KB
testcase_09 AC 74 ms
21,372 KB
testcase_10 AC 71 ms
21,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        var line = Console.ReadLine();
        line = (line.EndsWith("ai")) ? 
                string.Concat(line.Substring(0, line.Length - 2), "AI") : 
                string.Concat(line, "-AI");
        Console.WriteLine(line);
    }
}

0