Cool Numbers
CodeChefOpen on judge ↗
Well, 42 is the answer to the life, universe and everything else. No wonder all other numbers want to get as close to 42 as possible. We'll call this the "coolness" factor of the number. Given multiple sequences of numbers, a number appearing in the same sequence of 42 has a "coolness" factor of 1 and those not appearing in the sequence with 42 but with another number of "coolness " factor 1 has a
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start