結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
|
提出日時 | 2022-10-30 12:21:35 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 123 ms / 5,000 ms |
コード長 | 565 bytes |
コンパイル時間 | 840 ms |
コンパイル使用メモリ | 109,860 KB |
実行使用メモリ | 31,480 KB |
最終ジャッジ日時 | 2024-07-07 04:58:18 |
合計ジャッジ時間 | 2,481 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace SortItems { class Program { static void Main(string[] args) { var x = Console.ReadLine().Split().ToArray(); var y = Console.ReadLine().Split().ToArray(); if (x[1] != y[1]) { Console.WriteLine(BigInteger.Parse(x[1]) > BigInteger.Parse(y[1]) ? x[0] : y[0]); } else { Console.WriteLine(-1); } } } }