結果
問題 |
No.601 Midpoint Erase
|
ユーザー |
|
提出日時 | 2017-12-01 05:34:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 511 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 38,344 KB |
最終ジャッジ日時 | 2024-11-27 19:40:10 |
合計ジャッジ時間 | 32,594 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 TLE * 10 |
ソースコード
from collections import deque from collections import Counter from itertools import permutations def main(): N = int(input()) XY = tuple(tuple(map(int, input().split())) for _ in [0] * N) cnt = 0 for i in range(N - 1): for j in range(i + 1, N): x1, y1 = XY[i][0], XY[i][1] x2, y2 = XY[j][0], XY[j][1] if not (x1 - x2) & 1 and not (y1 - y2) & 1: cnt += 1 if cnt & 1: print('Alice') else: print('Bob') main()