結果
問題 | No.601 Midpoint Erase |
ユーザー |
![]() |
提出日時 | 2020-01-22 22:09:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 118 ms / 2,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 329 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 22,752 KB |
最終ジャッジ日時 | 2024-07-16 03:09:22 |
合計ジャッジ時間 | 3,196 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import sysread = sys.stdin.buffer.readreadline = sys.stdin.buffer.readlinereadlines = sys.stdin.buffer.readlinesN = int(readline())m = map(int,read().split())XY = zip(m,m)counter = [0] * 4for x,y in XY:x &= 1y &= 1counter[x+y+y] += 1can_del = sum(x//2 for x in counter)answer = 'Bob' if can_del % 2 == 0 else 'Alice'print(answer)