結果
| 問題 | No.601 Midpoint Erase |
| コンテスト | |
| ユーザー |
tanimani364
|
| 提出日時 | 2021-03-23 20:58:41 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 68 ms / 2,000 ms |
| + 696µs | |
| コード長 | 608 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 81,236 KB |
| 実行使用メモリ | 86,804 KB |
| 最終ジャッジ日時 | 2026-09-30 01:50:17 |
| 合計ジャッジ時間 | 4,017 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#!/usr/bin/env python3
#coding:utf-8
import math
import string
from sys import stdin
# import numpy as np
# from matplotlib import pyplot as plt
def main():
read=stdin.readline
#edit here!
n=int(read())
x=[0]*n
y=[0]*n
for i in range(n):
x[i],y[i]=map(int,read().split())
cnt=[0]*4
for i in range(n):
if x[i]%2==0 and y[i]%2==0:
cnt[0]+=1
elif x[i]%2==0 and y[i]%2==1:
cnt[1]+=1
elif x[i]%2==1 and y[i]%2==0:
cnt[2]+=1
else:
cnt[3]+=1
ans=0
for i in range(4):
ans+=cnt[i]//2
if ans%2==1:
print("Alice")
else:
print("Bob")
if __name__ == '__main__':
main()
tanimani364