結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-30 11:45:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 382 ms / 2,000 ms |
| コード長 | 352 bytes |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-29 21:33:21 |
| 合計ジャッジ時間 | 3,979 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
n=int(input())
even=0#偶数
odd=0#奇数
mix=0
mis=0
for i in range(n):
x,y=map(int,input().split())
if x%2==0 and y%2==0:
even+=1
if x%2!=0 and y%2!=0:
odd+=1
if x%2!=0 and y%2==0:
mix+=1
if x%2==0 and y%2!=0:
mis+=1
if (even//2+odd//2+mis//2+mix//2)%2==0:
print("Bob")
else:
print("Alice")