結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー cccccc
提出日時 2022-08-05 21:04:21
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 925 bytes
コンパイル時間 16,178 ms
コンパイル使用メモリ 143,372 KB
実行使用メモリ 161,248 KB
最終ジャッジ日時 2023-10-13 21:17:12
合計ジャッジ時間 19,108 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
27,892 KB
testcase_01 AC 47 ms
27,940 KB
testcase_02 AC 47 ms
30,220 KB
testcase_03 AC 48 ms
28,036 KB
testcase_04 AC 47 ms
27,932 KB
testcase_05 AC 48 ms
27,872 KB
testcase_06 AC 47 ms
27,944 KB
testcase_07 AC 47 ms
27,960 KB
testcase_08 AC 48 ms
30,212 KB
testcase_09 AC 47 ms
27,964 KB
testcase_10 AC 47 ms
27,824 KB
testcase_11 AC 47 ms
28,084 KB
testcase_12 AC 46 ms
28,008 KB
testcase_13 AC 48 ms
27,888 KB
testcase_14 AC 48 ms
27,828 KB
testcase_15 AC 48 ms
27,896 KB
testcase_16 AC 48 ms
28,156 KB
testcase_17 AC 47 ms
29,836 KB
testcase_18 AC 47 ms
28,148 KB
testcase_19 AC 47 ms
27,972 KB
testcase_20 AC 47 ms
27,960 KB
testcase_21 AC 46 ms
28,000 KB
testcase_22 AC 47 ms
28,000 KB
testcase_23 AC 47 ms
27,924 KB
testcase_24 AC 47 ms
28,004 KB
testcase_25 AC 47 ms
27,956 KB
testcase_26 AC 48 ms
27,920 KB
testcase_27 AC 48 ms
27,852 KB
testcase_28 AC 47 ms
27,940 KB
testcase_29 AC 49 ms
28,032 KB
testcase_30 AC 48 ms
27,952 KB
testcase_31 AC 47 ms
27,988 KB
testcase_32 AC 47 ms
27,892 KB
testcase_33 AC 47 ms
28,060 KB
testcase_34 AC 47 ms
161,248 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 139 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.Linq;

class Program
{
    static void Main()
    {
        var inst = new InputTestCase();
        var inp = inst.InputMix();

        var S = int.Parse(inp[0]);
        var T = int.Parse(inp[1]);
        string sig = inp[2];

        switch (sig)
        {
            case ">":
                Console.WriteLine((S > T) ? "YES" : "NO");
                break;
            case "<":
                Console.WriteLine((S < T) ? "YES" : "NO");
                break;
            case "=":
                Console.WriteLine((S == T) ? "YES" : "NO");
                break;
        }
    }
}
public class InputTestCase
{
    public int[] InputArrayInt()
    {
        return Console.ReadLine().Split().Select(int.Parse).ToArray();
    }
    public string InputStr()
    {
        return Console.ReadLine();
    }
    public string[] InputMix()
    {
        return Console.ReadLine().Split();
    }
}
0