結果

問題 No.977 アリス仕掛けの摩天楼
コンテスト
ユーザー ion0002
提出日時 2020-01-31 23:19:03
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 199 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 520 ms
コンパイル使用メモリ 20,696 KB
実行使用メモリ 21,756 KB
最終ジャッジ日時 2026-04-06 06:12:22
合計ジャッジ時間 10,535 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 5 TLE * 1 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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