結果

問題 No.2619 Sorted Nim
ユーザー heno239heno239
提出日時 2024-02-02 15:59:49
言語 C#
(.NET 8.0.203)
結果
WA  
実行時間 -
コード長 726 bytes
コンパイル時間 14,908 ms
コンパイル使用メモリ 157,780 KB
実行使用メモリ 192,820 KB
最終ジャッジ日時 2024-02-02 16:00:15
合計ジャッジ時間 22,822 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
32,548 KB
testcase_01 AC 74 ms
32,548 KB
testcase_02 AC 118 ms
45,600 KB
testcase_03 AC 107 ms
47,700 KB
testcase_04 AC 101 ms
45,760 KB
testcase_05 AC 102 ms
45,644 KB
testcase_06 AC 109 ms
48,912 KB
testcase_07 WA -
testcase_08 AC 107 ms
48,052 KB
testcase_09 WA -
testcase_10 AC 107 ms
47,844 KB
testcase_11 WA -
testcase_12 AC 107 ms
47,508 KB
testcase_13 WA -
testcase_14 AC 107 ms
47,844 KB
testcase_15 WA -
testcase_16 AC 107 ms
48,196 KB
testcase_17 WA -
testcase_18 AC 108 ms
48,036 KB
testcase_19 WA -
testcase_20 AC 103 ms
45,440 KB
testcase_21 AC 109 ms
49,060 KB
testcase_22 AC 103 ms
46,320 KB
testcase_23 AC 106 ms
47,512 KB
testcase_24 AC 109 ms
48,360 KB
testcase_25 AC 108 ms
48,200 KB
testcase_26 AC 105 ms
46,984 KB
testcase_27 AC 102 ms
45,584 KB
testcase_28 AC 109 ms
48,912 KB
testcase_29 AC 108 ms
48,376 KB
testcase_30 AC 106 ms
47,152 KB
testcase_31 AC 74 ms
32,548 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 104 ms
45,764 KB
testcase_35 WA -
testcase_36 AC 108 ms
47,848 KB
testcase_37 AC 76 ms
32,548 KB
testcase_38 AC 104 ms
45,924 KB
testcase_39 AC 108 ms
48,028 KB
testcase_40 AC 107 ms
46,320 KB
testcase_41 WA -
testcase_42 AC 103 ms
45,428 KB
testcase_43 AC 107 ms
48,028 KB
testcase_44 AC 108 ms
47,356 KB
testcase_45 AC 106 ms
48,024 KB
testcase_46 AC 106 ms
46,992 KB
testcase_47 AC 102 ms
45,604 KB
testcase_48 AC 76 ms
32,548 KB
testcase_49 AC 104 ms
46,624 KB
testcase_50 AC 103 ms
45,604 KB
testcase_51 AC 105 ms
46,640 KB
testcase_52 AC 74 ms
32,548 KB
testcase_53 AC 110 ms
49,076 KB
testcase_54 AC 104 ms
46,276 KB
testcase_55 WA -
testcase_56 WA -
testcase_57 AC 109 ms
48,420 KB
testcase_58 AC 108 ms
48,348 KB
testcase_59 WA -
testcase_60 AC 103 ms
45,924 KB
testcase_61 AC 104 ms
192,820 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (102 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

using System;
using System.Diagnostics;
using System.Numerics;
using System.Linq;

namespace ConsoleApplication1
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int[] a=Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            int x = 0;
            for (int i = 0; i < n; i += 2)
            {
                int v = a[i];
                if (i > 0) v -= a[i - 1];
                x ^= v;
            }

            if (x>0)
            {
                Console.WriteLine("First");
            }
            else
            {
                Console.WriteLine("Second");
            }
        }
    }
}
0