結果
問題 | No.601 Midpoint Erase |
ユーザー |
|
提出日時 | 2018-01-30 11:36:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 383 ms / 2,000 ms |
コード長 | 400 bytes |
コンパイル時間 | 426 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2024-12-29 21:32:44 |
合計ジャッジ時間 | 4,151 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
n=int(input())l=[]for i in range(n):x,y=map(int,input().split())if x%2==0 and y%2==0:l.append(1)elif x%2!=0 and y%2!=0:l.append(2)elif x%2==0 and y%2!=0:l.append(3)elif x%2!=0 and y%2==0:l.append(4)else:l.append(5)if (l.count(1)//2+l.count(2)//2+l.count(3)//2+l.count(4)//2)%2==0:print("Bob")else:print("Alice")