結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー ccc
提出日時 2022-08-05 21:03:08
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 917 bytes
コンパイル時間 10,189 ms
コンパイル使用メモリ 167,528 KB
実行使用メモリ 186,364 KB
最終ジャッジ日時 2024-09-15 16:47:01
合計ジャッジ時間 13,459 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 35
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (94 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;
using System.Linq;

class Program
{
    static void Main()
    {
        var inst = new TestInput();
        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 TestInput
{
    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