CHEF AND MATH
CodeChefOpen on judge ↗
Chef is a primary school student.He likes math.But for some reason,his math teacher doesn't like him.So his teacher gave him a test.In each test, he will be given a number N.He will have to memorize it. Then his teacher will ask him q queries. In each query there will be a digit x (0-9) and a char c ( + , * , / ). 1. If the character is + , he has to add x to every digit of n and calculate the
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