結果

問題 No.601 Midpoint Erase
ユーザー tanimani364tanimani364
提出日時 2021-03-23 20:58:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 608 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 86,872 KB
実行使用メモリ 83,436 KB
最終ジャッジ日時 2023-08-17 04:40:16
合計ジャッジ時間 6,694 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 148 ms
79,780 KB
testcase_01 AC 149 ms
79,784 KB
testcase_02 AC 145 ms
79,780 KB
testcase_03 AC 180 ms
82,736 KB
testcase_04 AC 183 ms
82,960 KB
testcase_05 AC 178 ms
82,692 KB
testcase_06 AC 174 ms
82,188 KB
testcase_07 AC 177 ms
82,728 KB
testcase_08 AC 179 ms
82,656 KB
testcase_09 AC 179 ms
82,972 KB
testcase_10 AC 161 ms
81,024 KB
testcase_11 AC 189 ms
83,436 KB
testcase_12 AC 172 ms
82,600 KB
testcase_13 AC 152 ms
79,792 KB
testcase_14 AC 148 ms
79,900 KB
testcase_15 AC 149 ms
79,792 KB
testcase_16 AC 150 ms
80,012 KB
testcase_17 AC 147 ms
79,924 KB
testcase_18 AC 152 ms
80,104 KB
testcase_19 AC 149 ms
79,960 KB
testcase_20 AC 145 ms
79,880 KB
testcase_21 AC 149 ms
80,112 KB
testcase_22 AC 148 ms
80,108 KB
testcase_23 AC 147 ms
79,876 KB
testcase_24 AC 147 ms
79,860 KB
testcase_25 AC 147 ms
79,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/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