結果

問題 No.102 トランプを奪え
ユーザー mbanmban
提出日時 2017-04-28 10:34:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 542 bytes
コンパイル時間 4,041 ms
コンパイル使用メモリ 103,148 KB
実行使用メモリ 23,876 KB
最終ジャッジ日時 2023-10-11 17:22:34
合計ジャッジ時間 4,455 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
23,856 KB
testcase_01 AC 59 ms
23,856 KB
testcase_02 AC 58 ms
19,800 KB
testcase_03 AC 58 ms
23,800 KB
testcase_04 AC 59 ms
21,884 KB
testcase_05 AC 58 ms
21,816 KB
testcase_06 AC 60 ms
21,892 KB
testcase_07 AC 59 ms
21,832 KB
testcase_08 AC 59 ms
19,812 KB
testcase_09 AC 58 ms
21,748 KB
testcase_10 AC 59 ms
23,876 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.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;

public class Program
{
    static public void Main(string[] args)
    {
        int[] n = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        int g = GCalc(n[0]) ^ GCalc(n[1]) ^ GCalc(n[2]) ^ GCalc(n[3]);
        Console.WriteLine(g == 0 ? "Jiro" : "Taro");
    }

    static private int GCalc(int n)
    {
        return n % 4;
    }
}

0