結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-05 13:17:58 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 5,000 ms |
| コード長 | 606 bytes |
| 記録 | |
| コンパイル時間 | 15,485 ms |
| コンパイル使用メモリ | 171,052 KB |
| 実行使用メモリ | 188,692 KB |
| 最終ジャッジ日時 | 2025-12-05 13:18:18 |
| 合計ジャッジ時間 | 10,194 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (120 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System.Numerics;
class Program
{
static void Main(string[] args)
{
string[] inputTop = Console.ReadLine()!.Split(' ');
string[] inputBottom = Console.ReadLine()!.Split(' ');
BigInteger numTop = BigInteger.Parse(inputTop[1]);
BigInteger numBottom = BigInteger.Parse(inputBottom[1]);
if (numBottom > numTop)
{
Console.WriteLine(inputBottom[0]);
}
else if (numTop > numBottom)
{
Console.WriteLine(inputTop[0]);
}
else
{
Console.WriteLine(-1);
}
}
}