結果
| 問題 |
No.806 木を道に
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-22 21:29:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 191 bytes |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2024-09-19 02:50:17 |
| 合計ジャッジ時間 | 5,922 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 21 |
ソースコード
n = int(input())
arr = [0] * (100100)
for i in range(n - 1):
a,b = map(int,input().split())
arr[a] += 1
arr[b] += 1
mx = 0
for i in arr:
mx = max(mx, i)
print(max(0, mx - 2))