結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 28 ms
9,968 KB
testcase_04 AC 29 ms
9,968 KB
testcase_05 AC 28 ms
9,968 KB
testcase_06 AC 29 ms
9,968 KB
testcase_07 AC 29 ms
9,968 KB
testcase_08 AC 30 ms
9,968 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 29 ms
9,968 KB
testcase_12 AC 30 ms
9,968 KB
testcase_13 AC 1,743 ms
10,376 KB
testcase_14 AC 1,530 ms
10,320 KB
testcase_15 AC 1,528 ms
10,324 KB
testcase_16 AC 1,744 ms
10,376 KB
testcase_17 AC 1,860 ms
10,380 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())

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

q=n+1-len(a)

if q>=1:
  print("Alice")
else: print("Bob")
0