結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,064 KB
testcase_01 AC 30 ms
10,064 KB
testcase_02 AC 30 ms
10,064 KB
testcase_03 AC 30 ms
10,064 KB
testcase_04 AC 30 ms
10,064 KB
testcase_05 AC 30 ms
10,064 KB
testcase_06 AC 30 ms
10,064 KB
testcase_07 AC 30 ms
10,068 KB
testcase_08 AC 30 ms
10,068 KB
testcase_09 WA -
testcase_10 AC 31 ms
10,068 KB
testcase_11 AC 30 ms
10,068 KB
testcase_12 AC 31 ms
10,068 KB
testcase_13 AC 62 ms
11,108 KB
testcase_14 AC 61 ms
11,076 KB
testcase_15 AC 62 ms
11,076 KB
testcase_16 AC 61 ms
11,112 KB
testcase_17 AC 62 ms
11,100 KB
testcase_18 AC 127 ms
13,112 KB
testcase_19 WA -
testcase_20 AC 204 ms
14,924 KB
testcase_21 AC 300 ms
17,608 KB
testcase_22 AC 409 ms
19,828 KB
testcase_23 WA -
testcase_24 AC 374 ms
20,420 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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 or len(islands[i])==0:
        print("Alice")
        exit()
print("Bob")
0