結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
|
提出日時 | 2021-06-13 14:54:06 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 54 ms / 2,000 ms |
コード長 | 677 bytes |
コンパイル時間 | 19,980 ms |
コンパイル使用メモリ | 168,892 KB |
実行使用メモリ | 187,580 KB |
最終ジャッジ日時 | 2024-12-23 02:22:38 |
合計ジャッジ時間 | 24,303 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (100 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.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;}}}