結果

問題 No.1129 Rating じゃんけん
ユーザー curryudon08curryudon08
提出日時 2021-02-23 18:41:22
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 835 bytes
コンパイル時間 2,182 ms
コンパイル使用メモリ 110,300 KB
実行使用メモリ 25,348 KB
最終ジャッジ日時 2023-10-23 20:00:13
合計ジャッジ時間 4,188 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
25,348 KB
testcase_01 AC 27 ms
25,348 KB
testcase_02 AC 27 ms
25,348 KB
testcase_03 AC 28 ms
25,348 KB
testcase_04 AC 27 ms
25,348 KB
testcase_05 AC 26 ms
25,348 KB
testcase_06 AC 27 ms
25,348 KB
testcase_07 AC 28 ms
25,348 KB
testcase_08 AC 27 ms
25,348 KB
testcase_09 AC 28 ms
25,348 KB
testcase_10 AC 28 ms
25,348 KB
testcase_11 AC 27 ms
25,348 KB
testcase_12 AC 28 ms
25,348 KB
testcase_13 AC 27 ms
25,348 KB
testcase_14 AC 27 ms
25,348 KB
testcase_15 AC 27 ms
25,348 KB
testcase_16 AC 27 ms
25,348 KB
testcase_17 AC 27 ms
25,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

namespace _1129
{
    class Program
    {
        static void Main(string[] args)
        {
            var s = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
            var a = s[0];
            var b = s[1];
            var c = s[2];
            var d = s[3];

            var winner = "";
            if(a == c){
                if(b == d){
                    winner = "Draw";
                }else{
                    if((b == 0 && d == 1) || (b == 1 && d == 2) || (b == 2 && d == 0)){
                        winner = "null";
                    }else{
                        winner = "tRue";
                    }
                }
            }else{
                winner = a > c ? "null" : "tRue"; 
            }

            Console.WriteLine(winner);
        }
    }
}
0