Gautam Vadai
CodeChefOpen on judge ↗
Problem Statement One day Gautam Khan was very eager to eat Vadai. He wanted to eat as much vada as possible. There were infinite vadais in front of him which are arranged in a line and numbered from 1 (1 2 3 4 .....)and he decided to eat them in N steps.In each step he can eat X vadais , X is between 0 to N^2 vadai (eg N=2 , then he can eat 0 vadai or 1 vadai or 2 vadais or 3 vadais or 4 vadais
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