結果
| 問題 |
No.977 アリス仕掛けの摩天楼
|
| ユーザー |
|
| 提出日時 | 2020-04-12 17:23:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 20,480 KB |
| 最終ジャッジ日時 | 2024-09-22 03:26:23 |
| 合計ジャッジ時間 | 3,887 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 8 |
ソースコード
#!/usr/bin/python3
a=int(input())
islands=[[] for x in range(a)]
for i in range(a-1):
m,n=map(int,input().split(" "))
islands[m].append(True)
islands[n].append(True)
if len(islands[m])>2 or len(islands[n])>2:
print("Alice")
exit()
print("Bob")