結果
| 問題 | No.601 Midpoint Erase |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-01 05:37:55 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 413 bytes |
| 記録 | |
| コンパイル時間 | 757 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 29,528 KB |
| 最終ジャッジ日時 | 2026-05-22 00:52:42 |
| 合計ジャッジ時間 | 4,864 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 3 TLE * 1 -- * 19 |
ソースコード
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()