結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー mokraimokrai
提出日時 2020-01-31 22:44:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 11,864 KB
実行使用メモリ 10,780 KB
最終ジャッジ日時 2023-10-17 11:18:58
合計ジャッジ時間 3,838 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,124 KB
testcase_01 AC 29 ms
10,124 KB
testcase_02 AC 29 ms
10,124 KB
testcase_03 AC 30 ms
10,124 KB
testcase_04 AC 30 ms
10,124 KB
testcase_05 AC 30 ms
10,124 KB
testcase_06 AC 30 ms
10,124 KB
testcase_07 AC 30 ms
10,128 KB
testcase_08 AC 29 ms
10,128 KB
testcase_09 AC 29 ms
10,128 KB
testcase_10 WA -
testcase_11 AC 29 ms
10,128 KB
testcase_12 AC 29 ms
10,128 KB
testcase_13 WA -
testcase_14 AC 60 ms
10,220 KB
testcase_15 AC 60 ms
10,220 KB
testcase_16 WA -
testcase_17 AC 59 ms
10,220 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 177 ms
10,252 KB
testcase_21 AC 260 ms
10,516 KB
testcase_22 AC 323 ms
10,780 KB
testcase_23 AC 339 ms
10,780 KB
testcase_24 AC 331 ms
10,780 KB
testcase_25 AC 336 ms
10,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

B = [0] * N

for i in range(N-1):
    u, v = list(map(int, input().split()))
    B[u] += 1
    B[v] += 1

ans = True
for i, bi in enumerate(B):
    if bi == 0:
        ans = False

if ans:
    print("Bob")
else:
    print("Alice")
0