結果

問題 No.1613 Rush and Remove
ユーザー tamatotamato
提出日時 2021-07-21 23:19:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 440 bytes
コンパイル時間 2,006 ms
コンパイル使用メモリ 87,548 KB
実行使用メモリ 76,892 KB
最終ジャッジ日時 2023-09-24 19:49:52
合計ジャッジ時間 4,737 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,472 KB
testcase_01 WA -
testcase_02 AC 70 ms
71,664 KB
testcase_03 AC 71 ms
71,704 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 72 ms
71,628 KB
testcase_07 AC 69 ms
71,636 KB
testcase_08 AC 71 ms
71,624 KB
testcase_09 AC 76 ms
76,784 KB
testcase_10 AC 78 ms
76,736 KB
testcase_11 AC 78 ms
76,716 KB
testcase_12 AC 79 ms
76,608 KB
testcase_13 AC 76 ms
76,624 KB
testcase_14 AC 77 ms
76,760 KB
testcase_15 WA -
testcase_16 AC 76 ms
76,892 KB
testcase_17 AC 77 ms
76,760 KB
testcase_18 WA -
testcase_19 AC 73 ms
76,064 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 73 ms
75,900 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 72 ms
76,092 KB
testcase_27 AC 68 ms
71,668 KB
testcase_28 WA -
testcase_29 AC 69 ms
71,900 KB
testcase_30 WA -
testcase_31 AC 67 ms
71,640 KB
testcase_32 WA -
testcase_33 AC 67 ms
71,872 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 68 ms
71,776 KB
testcase_37 AC 67 ms
71,832 KB
testcase_38 AC 66 ms
71,708 KB
testcase_39 WA -
権限があれば一括ダウンロードができます

ソースコード

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 h in range(H):
        for w in range(W):
            if grid[h][w] == "o":
                g ^= h
    if g:
        print("First")
    else:
        print("Second")


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