結果
| 問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-05 21:03:08 |
| 言語 | C# (.NET 10.0.201) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 917 bytes |
| 記録 | |
| コンパイル時間 | 13,496 ms |
| コンパイル使用メモリ | 173,612 KB |
| 実行使用メモリ | 198,060 KB |
| 最終ジャッジ日時 | 2026-04-04 20:46:25 |
| 合計ジャッジ時間 | 16,868 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 35 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (123 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
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();
}
}