結果
問題 | No.102 トランプを奪え |
ユーザー |
![]() |
提出日時 | 2017-04-28 10:34:56 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 542 bytes |
コンパイル時間 | 4,008 ms |
コンパイル使用メモリ | 111,480 KB |
実行使用メモリ | 27,248 KB |
最終ジャッジ日時 | 2024-09-13 16:22:37 |
合計ジャッジ時間 | 4,955 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
コンパイルメッセージ
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; 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; } }