#t394. 砝码称重(weight)
砝码称重(weight)
Weights
Background
Special for beginners, ^_^
Problem Description
There are several weights of each (their total weight is ).
Input Format
(meaning there are weights of , weights of , , and weights of ).
Output Format
Total=N
( is the number of different weights that can be measured with these weights, but excluding the case where no weight is used at all.)
Sample Input 1
1 1 0 0 0 0
Sample Output 1
Total=3
Constraints
1s, 1024KiB for each test case.
This means the three different weights can be measured.