-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
백준 13305 주유소
[문제유형] 그리디
https://www.acmicpc.net/problem/13305
//오일값이 싸지면 무조건 교체하는 것이 이득
var now = city[0]
for(i in 0 until city.size-1 ){
now = Math.min(now,city[i])
result += now * road[i]
}
Metadata
Metadata
Assignees
Labels
No labels