Skip to main content
JudgeKit
Practice
Playground
Contests
Rankings
Submissions
Community
Sign in
Loading...
Problem
Editorial
Accepted Solutions
Problem discussion
Back
최적 이진 검색 트리
Try in playground
Sign in to submit
Time Limit: 5000 ms
Memory Limit: 256 MB
Ruby V
8.5
Author: Super Admin
DP
d
i
×
w
i
)
d
i
d_i
d
i
i
i
i
w
i
w_i
w
i
제한
1
≤
N
≤
5,000
1 \le N \le 5{,}000
1
≤
N
≤
5
,
000
1
≤
w
i
≤
1,000
1 \le w_i \le 1{,}000
1
≤
w
i
≤
1
,
000
카운팅 오버플로우
Gold III
6