結果
問題 | No.977 アリス仕掛けの摩天楼 |
ユーザー |
![]() |
提出日時 | 2020-01-31 23:06:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 294 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2024-09-17 10:14:26 |
合計ジャッジ時間 | 3,754 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 8 |
ソースコード
n=int(input())x=[0]*nfor i in range(n-1):a,b=map(int,input().split())x[a]+=1x[b]+=1if x.count(1)==2 and x.count(2)==n-2:print("Bob")elif x.count(0)==1 and x.count(2)==n-1:print("Bob")else:print("Alice")