結果
問題 | No.601 Midpoint Erase |
ユーザー |
![]() |
提出日時 | 2020-08-06 02:44:27 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 94 ms / 2,000 ms |
コード長 | 704 bytes |
コンパイル時間 | 311 ms |
コンパイル使用メモリ | 81,840 KB |
実行使用メモリ | 76,032 KB |
最終ジャッジ日時 | 2024-09-18 22:41:07 |
合計ジャッジ時間 | 3,806 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
import sys; input = sys.stdin.buffer.readlinesys.setrecursionlimit(10**7)from collections import defaultdictcon = 10 ** 9 + 7; INF = float("inf")def getlist():return list(map(int, input().split()))#処理内容def main():N = int(input())odd_even = 0odd_odd = 0even_odd = 0even_even = 0for i in range(N):x, y = getlist()if x % 2 == 0 and y % 2 == 0:even_even += 1elif x % 2 == 0 and y % 2 == 1:even_odd += 1elif x % 2 == 1 and y % 2 == 0:odd_even += 1else:odd_odd += 1jud = int(odd_even // 2) + int(odd_odd // 2) + int(even_odd) // 2 + int(even_even // 2)if jud % 2 == 0:print("Bob")else:print("Alice")if __name__ == '__main__':main()