結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
|
提出日時 | 2022-08-05 21:04:21 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 53 ms / 2,000 ms |
コード長 | 925 bytes |
コンパイル時間 | 11,140 ms |
コンパイル使用メモリ | 168,580 KB |
実行使用メモリ | 185,532 KB |
最終ジャッジ日時 | 2024-09-15 16:49:14 |
合計ジャッジ時間 | 14,291 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (116 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/
ソースコード
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();}}