結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー MottchanMottchan
提出日時 2023-03-27 23:01:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 1,328 ms
コンパイル使用メモリ 81,580 KB
実行使用メモリ 86,504 KB
最終ジャッジ日時 2023-10-19 21:20:13
合計ジャッジ時間 4,109 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,412 KB
testcase_01 AC 37 ms
53,412 KB
testcase_02 AC 37 ms
53,412 KB
testcase_03 AC 38 ms
53,412 KB
testcase_04 AC 38 ms
53,412 KB
testcase_05 AC 37 ms
53,412 KB
testcase_06 AC 37 ms
53,412 KB
testcase_07 AC 39 ms
53,412 KB
testcase_08 AC 39 ms
53,412 KB
testcase_09 AC 39 ms
53,412 KB
testcase_10 WA -
testcase_11 AC 40 ms
53,412 KB
testcase_12 AC 39 ms
53,412 KB
testcase_13 WA -
testcase_14 AC 90 ms
76,552 KB
testcase_15 AC 91 ms
76,616 KB
testcase_16 WA -
testcase_17 AC 90 ms
76,780 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 140 ms
80,996 KB
testcase_21 AC 184 ms
84,120 KB
testcase_22 AC 221 ms
86,364 KB
testcase_23 AC 226 ms
86,372 KB
testcase_24 AC 208 ms
86,504 KB
testcase_25 AC 226 ms
86,368 KB
権限があれば一括ダウンロードができます

ソースコード

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].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')
0