UPSC CSAT 2026 Q22: Minimum Measurements With Cylinders — Solved
What is the minimum number of times one needs to measure to get 298 litres of water from a tank, if the measuring cylinders have capacities 1 litre, 6 litres, 25 litres and 100 litres?
- 4
- 5
- 9
- 13
Answer: (b) 5
Solution
- Decide what counts as one measurement. Each time you fill a cylinder and pour it into the collecting vessel, that is one measurement. Each time you fill a cylinder from the collected water and pour it back into the tank, that is also one measurement. You may add water or take it away. The question asks for the fewest measurements in total.
- Look for a round number close to 298. 298 = 300 − 2. Also 300 = 3 × 100.
- Build 300 litres. Fill the 100-litre cylinder three times and pour each into the vessel. That is 3 measurements, and the vessel now holds 300 litres.
- Remove 2 litres. Fill the 1-litre cylinder from the vessel and pour it back into the tank. Do this twice. That is 2 measurements, and 300 − 1 − 1 = 298 litres remain.
- Count the measurements. 3 + 2 = 5.
-
Check that 4 measurements cannot work. The 1, 6 and 25 cylinders together give at most 25 + 25 + 25 = 75 litres in three uses. So you need some 100s, and the number of 100s you use decides what the other measurements must cover: - Four uses of 100: you get 400 litres (or 300 − 100 = 200 if one is a removal). Neither is 298, and no measurements are left to adjust. - Three uses of 100 (net 300): one measurement must change the total by −2. No cylinder holds 2 litres. - Two net 100s (200): two measurements must add 98. The best pair is 25 + 25 = 50, which is too small. - One 100: three measurements must add 198. The most they can give is 75. So 4 measurements are not enough.
-
Compare with adding only. If you could only pour water in, the best split is 2 × 100 + 2 × 25 + 8 × 6 = 200 + 50 + 48 = 298, which takes 2 + 2 + 8 = 12 measurements. Taking water out cuts this to 5.
Answer: 5 measurements (3 × 100 in, then 2 × 1 out).
Option-wise explanation
- a: incorrect — With 4 measurements you would need three 100s and one change of −2, and no cylinder holds 2 litres. Every other mix of 4 falls short of 298 or goes past it, so 4 cannot be done.
- b: correct — Fill the 100-litre cylinder three times to get 300 litres, then take out 1 litre twice: 300 − 2 = 298. That is 5 measurements, and step 6 shows that 4 is impossible.
- c: incorrect — 9 works, but it is not the minimum. It comes from mixing additions and removals without first looking for the nearest multiple of 100. Once 5 is shown to work, any larger count is out.
- d: incorrect — This is the greedy add-only trap: 2 × 100 + 3 × 25 + 3 × 6 + 5 × 1 = 298 uses 2 + 3 + 3 + 5 = 13 measurements. It misses the idea of taking water out. Even with additions only, 13 is not the best: 2 × 100 + 2 × 25 + 8 × 6 needs 12.
How to eliminate
Notice that 298 is just below 300 = 3 × 100. Overshoot to 300 in 3 measurements and take out 2 one-litre measures: 5 in total. Then check only the smallest option, 4. It would need a single measure of 2 litres, and no cylinder holds 2 litres, so 4 is out. Since 5 works, 9 and 13 are out as well. You do not need to work through the greedy add-only count. About 30–45 seconds once you spot 300 − 2. Attempt this one early.
Know more
Measuring with containers: add and subtract
If water can be poured in and also taken back out, each measurement adds or removes one container's volume. The fewest measurements usually come from overshooting to the nearest easy total and then trimming.
Method
- Find the multiple of the largest container closest to the target, above or below.
- Work out the gap (target − that multiple). It can be negative.
- Close the gap with the fewest small containers, adding or removing them.
- Prove the count is minimal: check that one measurement fewer cannot reach the target. Use the largest amount the small containers can give, or the fact that no single container matches the gap.
Worked variant: containers of 1, 7, 30 and 100 litres; target 263 litres.
| Route | Working | Count |
|---|---|---|
| Add only (greedy) | 2 × 100 + 2 × 30 + 3 × 1 | 7 |
| Overshoot | 3 × 100 − 30 − 7 = 263 | 5 |
| Better split | 2 × 100 + 2 × 30 + 3 × 1 vs 3 × 100 − 37 | 5 wins |
Can it be done in 4? With three 100s you need −37 from one container, and none holds 37. With two 100s you need +63 from two containers, and the most is 30 + 30 = 60. So 5 is the minimum.
Watch for: options that equal the greedy add-only count. They are set for students who forget that water can be taken out.