結果

問題 No.1613 Rush and Remove
ユーザー 👑 kakel-sankakel-san
提出日時 2024-02-10 20:39:59
言語 C#
(.NET 8.0.203)
結果
WA  
実行時間 -
コード長 826 bytes
コンパイル時間 7,223 ms
コンパイル使用メモリ 158,460 KB
実行使用メモリ 180,036 KB
最終ジャッジ日時 2024-02-10 20:40:12
合計ジャッジ時間 12,325 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
32,548 KB
testcase_01 AC 76 ms
32,548 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 75 ms
32,548 KB
testcase_08 WA -
testcase_09 AC 78 ms
33,060 KB
testcase_10 AC 78 ms
33,060 KB
testcase_11 AC 78 ms
33,060 KB
testcase_12 WA -
testcase_13 AC 77 ms
33,060 KB
testcase_14 AC 78 ms
33,060 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 79 ms
33,060 KB
testcase_18 WA -
testcase_19 AC 77 ms
32,548 KB
testcase_20 WA -
testcase_21 AC 78 ms
32,548 KB
testcase_22 AC 77 ms
32,548 KB
testcase_23 AC 76 ms
32,548 KB
testcase_24 AC 77 ms
32,548 KB
testcase_25 AC 77 ms
32,548 KB
testcase_26 AC 76 ms
32,548 KB
testcase_27 AC 77 ms
32,548 KB
testcase_28 AC 77 ms
32,548 KB
testcase_29 AC 77 ms
32,548 KB
testcase_30 AC 76 ms
32,548 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 76 ms
32,548 KB
testcase_34 AC 76 ms
32,548 KB
testcase_35 AC 76 ms
32,548 KB
testcase_36 AC 77 ms
32,548 KB
testcase_37 WA -
testcase_38 AC 77 ms
32,548 KB
testcase_39 AC 76 ms
180,036 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/

ソースコード

diff #

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 string[] SList(long n) => Enumerable.Repeat(0, (int)n).Select(_ => ReadLine()).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var c = NList;
        var (h, w) = (c[0], c[1]);
        var map = SList(h);
        var ans = false;
         for (var j = 0; j < w; ++j)for (var i = 0; i < h; ++i)
        {
            var sub = 0;
            if (map[i][j] == 'o') sub += i % 2 == 0 ? 1 : 2;
            if (sub % 3 == 0) ans = !ans;
        }
        WriteLine(ans ? "Second" : "First");
    }
}
0