結果
問題 |
No.977 アリス仕掛けの摩天楼
|
ユーザー |
|
提出日時 | 2023-03-27 22:45:41 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 82,504 KB |
実行使用メモリ | 93,764 KB |
最終ジャッジ日時 | 2024-09-19 17:13:02 |
合計ジャッジ時間 | 3,231 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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=list() for i in S: cnt.append(len(i)) cnt.sort() if cnt[0]==0: print('Alice') else: print('Bob')