結果
| 問題 |
No.977 アリス仕掛けの摩天楼
|
| ユーザー |
|
| 提出日時 | 2023-03-27 23:01:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 243 bytes |
| コンパイル時間 | 135 ms |
| コンパイル使用メモリ | 82,392 KB |
| 実行使用メモリ | 87,056 KB |
| 最終ジャッジ日時 | 2024-09-19 17:23:02 |
| 合計ジャッジ時間 | 3,233 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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')