結果
| 問題 |
No.806 木を道に
|
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2019-08-24 01:07:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 311 ms / 2,000 ms |
| コード長 | 124 bytes |
| コンパイル時間 | 200 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2024-10-13 14:53:54 |
| 合計ジャッジ時間 | 5,329 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
N=int(input())
p=[0]*(N+1)
for _ in range(1,N):
a,b=map(int,input().split())
p[a]+=1
p[b]+=1
print(p.count(1)-2)
_matumo_