結果

問題 No.601 Midpoint Erase
ユーザー BQZet
提出日時 2017-12-18 03:21:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 339 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-12-23 03:33:28
合計ジャッジ時間 3,888 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
l=[]
for i in range(N):
	x,y=map(int,input().split())
	if(x%2==0 and y%2==0):
		l.append(1)
	elif(x%2==1 and y%2==0):
		l.append(2)
	elif(x%2==0 and y%2==1):
		l.append(3)
	elif(x%2==1 and y%2==1):
		l.append(4)
	else:
		l.append(5)
if (l.count(1)//2+l.count(2)//2+l.count(3)//2+l.count(4)//2)%2==0:
	print("Bob")
else:
	print("Alice")
0