Chef and Anurag
CodeChefOpen on judge ↗
Anurag plans to visit chef’s restaurant today as he is cooking his favourite red sauce pasta, but he is unaware of the fact that Chef is also cooking white sauce pasta which he absolutely hates. Every $n$th dish that Chef prepares is a white sauce pasta if $n$ is a palindrome number(A palindrome number is such that reads the same backward as forward, such as the number $10201$). Considering that C
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