結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー MottchanMottchan
提出日時 2023-03-27 22:00:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 1,310 ms
コンパイル使用メモリ 81,576 KB
実行使用メモリ 86,660 KB
最終ジャッジ日時 2023-10-19 20:34:26
合計ジャッジ時間 4,781 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,448 KB
testcase_01 AC 37 ms
53,448 KB
testcase_02 AC 37 ms
53,448 KB
testcase_03 AC 37 ms
53,448 KB
testcase_04 AC 37 ms
53,448 KB
testcase_05 AC 40 ms
53,448 KB
testcase_06 AC 39 ms
53,448 KB
testcase_07 AC 40 ms
53,448 KB
testcase_08 AC 40 ms
53,448 KB
testcase_09 AC 40 ms
53,448 KB
testcase_10 WA -
testcase_11 AC 39 ms
53,448 KB
testcase_12 AC 41 ms
53,448 KB
testcase_13 WA -
testcase_14 AC 89 ms
76,668 KB
testcase_15 AC 90 ms
76,676 KB
testcase_16 WA -
testcase_17 AC 93 ms
76,924 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 141 ms
81,156 KB
testcase_21 AC 179 ms
84,276 KB
testcase_22 AC 216 ms
86,512 KB
testcase_23 AC 222 ms
86,512 KB
testcase_24 AC 214 ms
86,660 KB
testcase_25 AC 226 ms
86,516 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-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