結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-01 05:37:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 413 bytes |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 35,072 KB |
| 最終ジャッジ日時 | 2024-11-27 19:40:43 |
| 合計ジャッジ時間 | 32,457 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 TLE * 10 |
ソースコード
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()