BugCrush 2 Question 7
CodeChefOpen on judge ↗
Problem Description Program to print the largest number up to N whose modulus with X is equal to Y modulo X. Input: There is no input required Rules: - Bugs will be mainly logical errors, syntax errors etc. They are specific to C++ language. - Since it is a debugging contest, you will be provided with a bugged solution below the Constraints section. Please, see that you must adhere to
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