結果
問題 |
No.977 アリス仕掛けの摩天楼
|
ユーザー |
|
提出日時 | 2020-01-31 22:35:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 68 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,520 KB |
最終ジャッジ日時 | 2024-09-17 09:14:00 |
合計ジャッジ時間 | 3,772 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 8 |
ソースコード
n = int(input()) g = [[] for _ in range(n)] for i in range(n-1): u, v = map(int, input().split()) g[u].append(v) g[v].append(u) for i in range(n): if len(g[i]) > 2: print("Alice") exit(0) print("Bob")