結果
| 問題 | No.977 アリス仕掛けの摩天楼 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-31 21:29:28 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 364 ms |
| コンパイル使用メモリ | 20,832 KB |
| 実行使用メモリ | 16,088 KB |
| 最終ジャッジ日時 | 2026-04-06 04:14:42 |
| 合計ジャッジ時間 | 4,614 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 WA * 5 |
ソースコード
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")