单点时限: 1.0 sec
内存限制: 512 MB
This is a simple question. This is a simple question.This is a simple question.
You are given four integers
Now you have a integer
Each time you can choose one of the following operations:
Find the minimun cost to get
There are multiple test cases in this problem.
In each test case,there is only one line contains four integers
For each test case print one line for the minimun cost to get
1 0 0 0 10 1 10 1 10 1 0 10 10 10 0 1
0 10 2 12