結果
問題 | No.1852 Divide or Reduce |
ユーザー | 👑 kakel-san |
提出日時 | 2023-11-30 00:27:51 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 791 bytes |
コンパイル時間 | 9,280 ms |
コンパイル使用メモリ | 158,716 KB |
実行使用メモリ | 239,568 KB |
最終ジャッジ日時 | 2023-11-30 00:28:14 |
合計ジャッジ時間 | 20,258 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 79 ms
32,548 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 223 ms
73,724 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 198 ms
76,932 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 320 ms
87,640 KB |
testcase_17 | AC | 302 ms
87,768 KB |
testcase_18 | AC | 308 ms
87,644 KB |
testcase_19 | AC | 262 ms
82,332 KB |
testcase_20 | AC | 323 ms
239,568 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (97 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/
ソースコード
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); public static void Main() { Solve(); } static void Solve() { var t = NN; var ans = new bool[t]; for (var u = 0; u < t; ++u) { var n = NN; var a = NList; var ecount = a.Count(ai => ai % 2 == 0); ans[u] = ecount == n || ecount % 2 == 1; } WriteLine(string.Join("\n", ans.Select(f => f ? "First" : "Second"))); } }