結果
問題 | No.601 Midpoint Erase |
ユーザー |
![]() |
提出日時 | 2020-02-25 20:05:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 363 ms / 2,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 26,752 KB |
最終ジャッジ日時 | 2024-10-13 13:08:06 |
合計ジャッジ時間 | 3,701 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
N = int(input())L = [[int(l) for l in input().split()] for _ in range(N)]memo = [0]*4for i in range(N):if L[i][0]%2 == 0 and L[i][1]%2 == 0:memo[0] += 1elif L[i][0]%2 == 0:memo[1] += 1elif L[i][0]%2 == 1 and L[i][1]%2 == 0:memo[2] += 1else:memo[3] += 1num = memo[0]//2 + memo[1]//2 + memo[2]//2 + memo[3]//2if num%2 == 1:print("Alice")else:print("Bob")