結果

問題 No.601 Midpoint Erase
コンテスト
ユーザー tanimani364
提出日時 2021-03-23 20:58:41
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 68 ms / 2,000 ms
+ 696µs
コード長 608 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/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()
0