Ciel Numbers III
Tomya is a girl. She loves Chef Ciel very much. Tomya also loves Ciel numbers. The definition of Ciel numbers are following. Ciel numbers are defined as the positive integers k such that d(k, 8) ≥ d(k, 5) ≥ d(k, 3) and d(k, i) = 0 for all i = 0, 1, 2, 4, 6, 7, 9, where d(k, i) denotes the number of the digit i in the decimal representation of the integer k. For example, the first few Ciel number
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