일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- nav-tab
- 라즈비안
- Crawling
- Python
- dp
- 알고리즘
- 크롤링
- NAV
- 트리
- 파이썬
- Algorythm
- 16.04
- 라즈베리파이3b+
- dynaminprogramming
- 2579
- 13237
- CSS
- 라즈베리파이
- node.js
- algotythm
- raspberrypi
- springboot3.x
- MongoDB
- 백준
- 2909
- baekjun
- ubuntu
- bootstrap
- 라즈베리파이3
- HTML
Archives
- Today
- Total
목록dp (2)
노트
[백준] 13237번 Binary tree python
n = int(input()) parent = [int(input()) for _ in range(n)] high = [0 for i in range(n)] for i in range(n): if parent[i]==-1: continue high[i]=high[parent[i]-1]+1 for i in range(n): print(high[i])
알고리즘
2024. 3. 1. 14:06