結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー kamomekamome
提出日時 2020-04-12 17:33:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 278 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 11,812 KB
実行使用メモリ 20,424 KB
最終ジャッジ日時 2023-10-22 02:05:15
合計ジャッジ時間 5,278 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,056 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 29 ms
10,056 KB
testcase_05 AC 30 ms
10,056 KB
testcase_06 AC 28 ms
10,056 KB
testcase_07 AC 28 ms
10,060 KB
testcase_08 AC 30 ms
10,060 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 29 ms
10,060 KB
testcase_12 AC 30 ms
10,060 KB
testcase_13 AC 59 ms
11,096 KB
testcase_14 AC 58 ms
11,064 KB
testcase_15 AC 58 ms
11,064 KB
testcase_16 AC 59 ms
11,100 KB
testcase_17 AC 59 ms
11,088 KB
testcase_18 AC 123 ms
13,100 KB
testcase_19 WA -
testcase_20 AC 188 ms
14,912 KB
testcase_21 AC 283 ms
17,596 KB
testcase_22 AC 366 ms
19,816 KB
testcase_23 WA -
testcase_24 AC 360 ms
20,408 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python3
a=int(input())
islands=[[] for x in range(a)]
for i in range(a-1):
    m,n=map(int,input().split(" "))
    islands[m].append(True)
    islands[n].append(True)
for i in range(a-1):
    if len(islands[i]) ==2:
        print("Alice")
        exit()
print("Bob")
0