結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー universatouniversato
提出日時 2020-01-31 22:35:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 11,824 KB
実行使用メモリ 26,644 KB
最終ジャッジ日時 2023-10-17 10:53:08
合計ジャッジ時間 4,381 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,152 KB
testcase_01 AC 29 ms
10,152 KB
testcase_02 AC 29 ms
10,152 KB
testcase_03 AC 29 ms
10,152 KB
testcase_04 AC 29 ms
10,152 KB
testcase_05 AC 29 ms
10,152 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 29 ms
10,156 KB
testcase_09 WA -
testcase_10 AC 30 ms
10,156 KB
testcase_11 AC 30 ms
10,156 KB
testcase_12 AC 30 ms
10,156 KB
testcase_13 AC 61 ms
11,796 KB
testcase_14 AC 61 ms
11,532 KB
testcase_15 AC 62 ms
11,532 KB
testcase_16 AC 61 ms
11,796 KB
testcase_17 AC 62 ms
11,532 KB
testcase_18 AC 128 ms
15,112 KB
testcase_19 AC 137 ms
15,104 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 384 ms
26,644 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

g = [[] for _ in range(n)]

for i in range(n-1):
    u, v = map(int, input().split())
    g[u].append(v)
    g[v].append(u)

for i in range(n):
    
    if len(g[i]) > 2:
        print("Alice")
        exit(0)

print("Bob")
0