結果
問題 | No.1613 Rush and Remove |
ユーザー |
![]() |
提出日時 | 2021-07-22 00:02:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 495 bytes |
コンパイル時間 | 231 ms |
コンパイル使用メモリ | 82,248 KB |
実行使用メモリ | 62,304 KB |
最終ジャッジ日時 | 2024-07-17 20:50:30 |
合計ジャッジ時間 | 2,684 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 36 |
ソースコード
mod = 1000000007eps = 10**-9def main():import sysinput = sys.stdin.readlineH, W = map(int, input().split())grid = []for _ in range(H):grid.append(input().rstrip('\n'))G = 0for w in range(W):g = 0for h in range(H):if grid[h][w] == "o":g += pow(2, h, 3)g %= 3G ^= gif G:print("First")else:print("Second")if __name__ == '__main__':main()