結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,100 KB
testcase_01 AC 28 ms
10,100 KB
testcase_02 AC 28 ms
10,100 KB
testcase_03 AC 29 ms
10,100 KB
testcase_04 AC 28 ms
10,100 KB
testcase_05 AC 28 ms
10,100 KB
testcase_06 AC 28 ms
10,100 KB
testcase_07 AC 28 ms
10,100 KB
testcase_08 AC 28 ms
10,100 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 28 ms
10,100 KB
testcase_12 AC 28 ms
10,100 KB
testcase_13 AC 56 ms
10,192 KB
testcase_14 AC 57 ms
10,192 KB
testcase_15 AC 57 ms
10,192 KB
testcase_16 AC 58 ms
10,192 KB
testcase_17 AC 57 ms
10,192 KB
testcase_18 AC 114 ms
10,228 KB
testcase_19 WA -
testcase_20 AC 164 ms
10,228 KB
testcase_21 AC 241 ms
10,492 KB
testcase_22 AC 298 ms
10,756 KB
testcase_23 WA -
testcase_24 AC 313 ms
10,756 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=[0]*n
for i in range(n-1):
  a,b=map(int,input().split())
  x[a]+=1
  x[b]+=1
if x.count(1)==2 and x.count(2)==n-2:print("Bob")
else:print("Alice")
0