結果

問題 No.1613 Rush and Remove
ユーザー ayaoniayaoni
提出日時 2021-07-21 22:11:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 762 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 76,780 KB
最終ジャッジ日時 2023-09-24 18:01:00
合計ジャッジ時間 5,101 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,296 KB
testcase_01 AC 71 ms
71,228 KB
testcase_02 AC 72 ms
71,296 KB
testcase_03 AC 74 ms
71,544 KB
testcase_04 AC 72 ms
71,416 KB
testcase_05 AC 72 ms
71,536 KB
testcase_06 AC 73 ms
71,588 KB
testcase_07 AC 71 ms
71,336 KB
testcase_08 AC 73 ms
71,396 KB
testcase_09 AC 84 ms
76,660 KB
testcase_10 AC 82 ms
76,644 KB
testcase_11 AC 81 ms
76,548 KB
testcase_12 AC 81 ms
76,676 KB
testcase_13 AC 82 ms
76,592 KB
testcase_14 AC 81 ms
76,656 KB
testcase_15 AC 81 ms
76,564 KB
testcase_16 AC 83 ms
76,572 KB
testcase_17 AC 82 ms
76,780 KB
testcase_18 AC 76 ms
75,984 KB
testcase_19 AC 77 ms
76,000 KB
testcase_20 AC 76 ms
76,220 KB
testcase_21 AC 75 ms
75,804 KB
testcase_22 AC 75 ms
75,892 KB
testcase_23 AC 77 ms
75,764 KB
testcase_24 AC 76 ms
75,784 KB
testcase_25 AC 76 ms
75,916 KB
testcase_26 AC 77 ms
75,908 KB
testcase_27 AC 72 ms
71,332 KB
testcase_28 AC 72 ms
71,640 KB
testcase_29 AC 71 ms
71,292 KB
testcase_30 AC 71 ms
71,444 KB
testcase_31 AC 70 ms
71,232 KB
testcase_32 AC 71 ms
71,296 KB
testcase_33 AC 71 ms
71,300 KB
testcase_34 AC 70 ms
71,232 KB
testcase_35 AC 73 ms
71,448 KB
testcase_36 AC 73 ms
71,096 KB
testcase_37 AC 72 ms
71,400 KB
testcase_38 AC 74 ms
71,224 KB
testcase_39 AC 73 ms
71,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


H,W = MI()
B = [S() for _ in range(H)]

grundy = 0
for j in range(W):
    g = 0
    for i in range(H):
        if B[i][j] == 'o':
            if i % 2 == 0:
                g += 1
            else:
                g -= 1
    g %= 3
    grundy ^= g

if grundy == 0:
    print('Second')
else:
    print('First')
0