結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー Mottchan
提出日時 2023-03-27 22:00:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 1,544 ms
コンパイル使用メモリ 82,008 KB
実行使用メモリ 86,980 KB
最終ジャッジ日時 2024-09-19 16:39:22
合計ジャッジ時間 4,794 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
S = [[]for i in range(n)]
for i in range(n-1):
    u,v = list(map(int, input().split()))
    S[u-1].append(v)
    S[v-1].append(u)

for i in S:
    if len(i) != 0:
        continue
    else:
        print('Alice')
        break
else:
    print('Bob')
0