R Numbers
CodeChefOpen on judge ↗
Have you ever wondered about the unique property of the repeating block of 1/7? ______ 1/7=0.142857 ______ 2/7=0.285714 ______ 3/7=0.428571 ______ 4/7=0.571428 ______ 5/7=0.714285 ______ 6/7=0.857142 We see that the repeating block follows cyclic permutations when multiplied by natural numbers.
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