結果

問題 No.201 yukicoderじゃんけん
ユーザー bluemeganebluemegane
提出日時 2018-09-19 10:13:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 148 ms / 5,000 ms
コード長 516 bytes
コンパイル時間 1,984 ms
コンパイル使用メモリ 104,596 KB
実行使用メモリ 27,164 KB
最終ジャッジ日時 2023-09-25 10:06:15
合計ジャッジ時間 4,613 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
20,984 KB
testcase_01 AC 60 ms
20,804 KB
testcase_02 AC 59 ms
20,872 KB
testcase_03 AC 63 ms
22,924 KB
testcase_04 AC 62 ms
18,888 KB
testcase_05 AC 63 ms
22,944 KB
testcase_06 AC 62 ms
20,828 KB
testcase_07 AC 61 ms
22,840 KB
testcase_08 AC 62 ms
18,848 KB
testcase_09 AC 63 ms
20,912 KB
testcase_10 AC 62 ms
22,800 KB
testcase_11 AC 63 ms
22,884 KB
testcase_12 AC 63 ms
20,776 KB
testcase_13 AC 64 ms
22,836 KB
testcase_14 AC 60 ms
20,800 KB
testcase_15 AC 147 ms
26,992 KB
testcase_16 AC 146 ms
27,164 KB
testcase_17 AC 147 ms
23,072 KB
testcase_18 AC 148 ms
27,012 KB
testcase_19 AC 147 ms
26,988 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System.Numerics;
using System;

public class Hello
{
    public static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var sa = line[0];
        BigInteger pa = BigInteger.Parse(line[1]);
        line = Console.ReadLine().Trim().Split(' ');
        var sb = line[0];
        BigInteger pb = BigInteger.Parse(line[1]);
        string ans;
        if (pa > pb) ans = sa;
        else if (pa < pb) ans = sb;
        else ans = "-1";
        Console.WriteLine(ans);
    }
}
0