結果
問題 |
No.601 Midpoint Erase
|
ユーザー |
![]() |
提出日時 | 2021-03-23 20:58:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 103 ms / 2,000 ms |
コード長 | 608 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 78,848 KB |
最終ジャッジ日時 | 2024-11-25 22:23:01 |
合計ジャッジ時間 | 3,998 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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()