結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー mobchanmobchan
提出日時 2023-04-24 16:21:37
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 625 bytes
コンパイル時間 10,323 ms
コンパイル使用メモリ 168,496 KB
実行使用メモリ 184,892 KB
最終ジャッジ日時 2024-04-26 04:47:18
合計ジャッジ時間 12,388 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
28,672 KB
testcase_01 AC 49 ms
28,544 KB
testcase_02 AC 49 ms
28,928 KB
testcase_03 AC 49 ms
28,544 KB
testcase_04 AC 49 ms
28,928 KB
testcase_05 AC 47 ms
28,800 KB
testcase_06 AC 47 ms
28,800 KB
testcase_07 AC 48 ms
28,928 KB
testcase_08 AC 49 ms
28,800 KB
testcase_09 AC 49 ms
28,544 KB
testcase_10 AC 50 ms
28,544 KB
testcase_11 AC 48 ms
28,928 KB
testcase_12 AC 47 ms
28,672 KB
testcase_13 AC 47 ms
28,544 KB
testcase_14 AC 47 ms
29,056 KB
testcase_15 AC 48 ms
28,672 KB
testcase_16 AC 49 ms
28,672 KB
testcase_17 AC 48 ms
28,544 KB
testcase_18 AC 47 ms
28,800 KB
testcase_19 AC 50 ms
28,672 KB
testcase_20 AC 49 ms
29,044 KB
testcase_21 AC 49 ms
28,912 KB
testcase_22 AC 49 ms
28,672 KB
testcase_23 AC 49 ms
28,672 KB
testcase_24 AC 47 ms
28,544 KB
testcase_25 AC 48 ms
28,896 KB
testcase_26 AC 49 ms
29,168 KB
testcase_27 AC 49 ms
29,184 KB
testcase_28 AC 48 ms
28,672 KB
testcase_29 AC 49 ms
28,672 KB
testcase_30 AC 50 ms
28,544 KB
testcase_31 AC 48 ms
29,032 KB
testcase_32 AC 48 ms
28,656 KB
testcase_33 AC 47 ms
28,800 KB
testcase_34 AC 48 ms
184,892 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (97 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        var input = Console.ReadLine().Split();
        var S = int.Parse(input[0]);
        var T = int.Parse(input[1]);
        var c = input[2];
        var ans = "NO";

        switch (c)
        {
            case "<": 
                if (S < T) ans = "YES";
                break;
            case ">":
                if (S > T) ans = "YES";
                break;
            case "=":
                if (S == T) ans = "YES";
                break;
            default:
                break;
        }
        Console.WriteLine(ans);
    }
}
0