結果
| 問題 | No.977 アリス仕掛けの摩天楼 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-27 23:01:34 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 96,324 KB |
| 実行使用メモリ | 95,252 KB |
| 最終ジャッジ日時 | 2026-08-31 05:37:56 |
| 合計ジャッジ時間 | 4,463 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 WA * 5 |
ソースコード
n = int(input())
S = [[]for i in range(n)]
for i in range(n-1):
u,v = list(map(int, input().split()))
S[u].append(v)
S[v].append(u)
cnt=set()
for i in S:
cnt.add(len(i))
if 0 in cnt:
print('Alice')
else:
print('Bob')