結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー kamomekamome
提出日時 2020-04-12 17:23:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 223 ms
コンパイル使用メモリ 11,756 KB
実行使用メモリ 19,780 KB
最終ジャッジ日時 2023-10-22 01:44:29
合計ジャッジ時間 3,621 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,020 KB
testcase_01 AC 29 ms
10,020 KB
testcase_02 AC 29 ms
10,020 KB
testcase_03 AC 29 ms
10,020 KB
testcase_04 AC 30 ms
10,020 KB
testcase_05 AC 30 ms
10,020 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 30 ms
10,024 KB
testcase_09 WA -
testcase_10 AC 30 ms
10,024 KB
testcase_11 AC 29 ms
10,024 KB
testcase_12 AC 30 ms
10,024 KB
testcase_13 AC 34 ms
10,736 KB
testcase_14 AC 32 ms
10,732 KB
testcase_15 AC 32 ms
10,736 KB
testcase_16 AC 32 ms
10,736 KB
testcase_17 AC 58 ms
11,040 KB
testcase_18 AC 36 ms
12,056 KB
testcase_19 AC 135 ms
13,064 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 59 ms
17,172 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)
    if len(islands[m])>2 or len(islands[n])>2:
        print("Alice")
        exit()
print("Bob")
0