Lets Play
CodeChefOpen on judge ↗
Aditya developed a new game . He takes N steps and writes 1,2,3,..,N on them . Now he takes an integer M and starts to make cross on i th step for every 2 <= i <= M . Now he gives a number K to his friend Vijay and asks him whether there is a cross on K th step or not . Help Vijay to check whether there is a cross on step K or not . ### Input - The first line of T - No. of test cases - The secon
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