結果

問題 No.1613 Rush and Remove
ユーザー tamatotamato
提出日時 2021-07-22 00:02:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 495 bytes
コンパイル時間 856 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 76,720 KB
最終ジャッジ日時 2023-09-24 20:04:09
合計ジャッジ時間 5,693 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,608 KB
testcase_01 AC 67 ms
71,608 KB
testcase_02 AC 69 ms
71,556 KB
testcase_03 AC 67 ms
71,284 KB
testcase_04 AC 69 ms
71,580 KB
testcase_05 AC 69 ms
71,620 KB
testcase_06 AC 74 ms
71,608 KB
testcase_07 AC 67 ms
71,628 KB
testcase_08 AC 67 ms
71,464 KB
testcase_09 AC 84 ms
76,364 KB
testcase_10 AC 78 ms
76,720 KB
testcase_11 AC 79 ms
76,448 KB
testcase_12 AC 81 ms
76,452 KB
testcase_13 AC 80 ms
76,680 KB
testcase_14 AC 79 ms
76,560 KB
testcase_15 AC 81 ms
76,500 KB
testcase_16 AC 79 ms
76,412 KB
testcase_17 AC 81 ms
76,692 KB
testcase_18 AC 73 ms
76,064 KB
testcase_19 AC 72 ms
76,104 KB
testcase_20 AC 72 ms
76,064 KB
testcase_21 AC 72 ms
75,956 KB
testcase_22 AC 74 ms
76,212 KB
testcase_23 AC 72 ms
75,980 KB
testcase_24 AC 70 ms
76,068 KB
testcase_25 AC 73 ms
75,960 KB
testcase_26 AC 71 ms
76,020 KB
testcase_27 AC 67 ms
71,660 KB
testcase_28 AC 67 ms
71,664 KB
testcase_29 AC 67 ms
71,668 KB
testcase_30 AC 70 ms
71,500 KB
testcase_31 AC 67 ms
71,612 KB
testcase_32 AC 66 ms
71,464 KB
testcase_33 AC 69 ms
71,720 KB
testcase_34 AC 69 ms
71,512 KB
testcase_35 AC 73 ms
71,468 KB
testcase_36 AC 73 ms
71,592 KB
testcase_37 AC 74 ms
71,460 KB
testcase_38 AC 70 ms
71,528 KB
testcase_39 AC 71 ms
71,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    H, W = map(int, input().split())
    grid = []
    for _ in range(H):
        grid.append(input().rstrip('\n'))

    G = 0
    for w in range(W):
        g = 0
        for h in range(H):
            if grid[h][w] == "o":
                g += pow(2, h, 3)
                g %= 3
        G ^= g
    if G:
        print("First")
    else:
        print("Second")


if __name__ == '__main__':
    main()
0