結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,052 KB
testcase_01 AC 27 ms
10,024 KB
testcase_02 AC 27 ms
10,024 KB
testcase_03 AC 27 ms
10,024 KB
testcase_04 AC 27 ms
10,024 KB
testcase_05 AC 27 ms
10,024 KB
testcase_06 AC 26 ms
10,024 KB
testcase_07 AC 27 ms
10,024 KB
testcase_08 AC 27 ms
10,024 KB
testcase_09 AC 27 ms
10,024 KB
testcase_10 WA -
testcase_11 AC 28 ms
10,024 KB
testcase_12 AC 28 ms
10,024 KB
testcase_13 WA -
testcase_14 AC 1,522 ms
10,376 KB
testcase_15 AC 1,527 ms
10,380 KB
testcase_16 WA -
testcase_17 AC 1,853 ms
10,436 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>=2:
  print("Alice")
else: print("Bob")
0