結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー 👑 kakel-sankakel-san
提出日時 2021-06-13 14:54:06
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 677 bytes
コンパイル時間 7,332 ms
コンパイル使用メモリ 146,812 KB
実行使用メモリ 164,164 KB
最終ジャッジ日時 2023-08-24 17:54:30
合計ジャッジ時間 11,938 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
27,916 KB
testcase_01 AC 46 ms
28,168 KB
testcase_02 AC 45 ms
27,968 KB
testcase_03 AC 45 ms
28,080 KB
testcase_04 AC 45 ms
29,856 KB
testcase_05 AC 46 ms
28,188 KB
testcase_06 AC 46 ms
29,976 KB
testcase_07 AC 46 ms
28,096 KB
testcase_08 AC 45 ms
28,100 KB
testcase_09 AC 45 ms
28,052 KB
testcase_10 AC 45 ms
28,056 KB
testcase_11 AC 45 ms
28,172 KB
testcase_12 AC 45 ms
28,136 KB
testcase_13 AC 47 ms
27,888 KB
testcase_14 AC 46 ms
27,852 KB
testcase_15 AC 47 ms
27,848 KB
testcase_16 AC 46 ms
27,916 KB
testcase_17 AC 46 ms
27,820 KB
testcase_18 AC 46 ms
28,004 KB
testcase_19 AC 46 ms
29,992 KB
testcase_20 AC 46 ms
27,876 KB
testcase_21 AC 46 ms
27,756 KB
testcase_22 AC 47 ms
28,032 KB
testcase_23 AC 46 ms
28,136 KB
testcase_24 AC 47 ms
29,772 KB
testcase_25 AC 46 ms
28,040 KB
testcase_26 AC 46 ms
27,868 KB
testcase_27 AC 46 ms
27,892 KB
testcase_28 AC 46 ms
29,892 KB
testcase_29 AC 45 ms
27,892 KB
testcase_30 AC 44 ms
28,056 KB
testcase_31 AC 44 ms
28,024 KB
testcase_32 AC 44 ms
28,100 KB
testcase_33 AC 46 ms
27,988 KB
testcase_34 AC 46 ms
164,164 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 119 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;

class yc299
{
    static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    static int[][] NMap(int n) => Enumerable.Repeat<int>(0, n).Select(_ => NList).ToArray();
    static void Main()
    {
        var n = ReadLine().Split();
        WriteLine(A(int.Parse(n[0]), int.Parse(n[1]), n[2]) ? "YES" : "NO");
    }
    static bool A(int a, int b, string c)
    {
        switch (c)
        {
            case "<":
                return a < b;
            case ">":
                return a > b;
            default:
                return a == b;
        }
    }
}
0