結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー MottchanMottchan
提出日時 2023-03-27 22:45:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 81,708 KB
実行使用メモリ 93,332 KB
最終ジャッジ日時 2023-10-19 21:08:49
合計ジャッジ時間 4,458 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,436 KB
testcase_01 AC 39 ms
53,436 KB
testcase_02 AC 39 ms
53,436 KB
testcase_03 AC 39 ms
53,436 KB
testcase_04 AC 40 ms
53,436 KB
testcase_05 AC 38 ms
53,436 KB
testcase_06 AC 38 ms
53,436 KB
testcase_07 AC 39 ms
53,436 KB
testcase_08 AC 39 ms
53,436 KB
testcase_09 AC 40 ms
53,436 KB
testcase_10 WA -
testcase_11 AC 39 ms
53,436 KB
testcase_12 AC 40 ms
53,436 KB
testcase_13 WA -
testcase_14 AC 92 ms
76,648 KB
testcase_15 AC 92 ms
76,716 KB
testcase_16 WA -
testcase_17 AC 91 ms
76,888 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 142 ms
83,556 KB
testcase_21 AC 187 ms
88,808 KB
testcase_22 AC 219 ms
92,560 KB
testcase_23 AC 231 ms
92,832 KB
testcase_24 AC 220 ms
93,332 KB
testcase_25 AC 234 ms
92,832 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=list()
for i in S:
    cnt.append(len(i))

cnt.sort()
if cnt[0]==0:
    print('Alice')
else:
    print('Bob')
0