結果

問題 No.2098 [Cherry Alpha *] Introduction
ユーザー 👑 kakel-sankakel-san
提出日時 2022-10-14 22:36:54
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 403 bytes
コンパイル時間 2,776 ms
コンパイル使用メモリ 64,936 KB
実行使用メモリ 22,576 KB
最終ジャッジ日時 2023-09-08 22:51:57
合計ジャッジ時間 4,237 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,276 KB
testcase_01 AC 50 ms
22,548 KB
testcase_02 AC 51 ms
20,464 KB
testcase_03 AC 49 ms
18,448 KB
testcase_04 AC 50 ms
20,416 KB
testcase_05 AC 50 ms
20,440 KB
testcase_06 AC 49 ms
18,520 KB
testcase_07 AC 49 ms
22,576 KB
testcase_08 AC 50 ms
22,516 KB
testcase_09 AC 50 ms
20,584 KB
testcase_10 AC 50 ms
22,448 KB
testcase_11 AC 50 ms
20,544 KB
testcase_12 AC 50 ms
20,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using static System.Console;
using System.Linq;

class Program
{
    static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var s = ReadLine();
        if (s[0] == 'Z') WriteLine("1st");
        else if (s[0] == 'B') WriteLine("2nd");
        else if (s[0] == 'S') WriteLine("3rd");
        else if (s[0] == 'E') WriteLine("4th");
        else WriteLine("Alpha");
    }
}
0