Train Sitting
CodeChefOpen on judge ↗
Mr Subrata Sarkar has developed a basic AI software for online ticket booking. Mr Saranya Naha Roy, a tour traveller agent wants to buy ticket for $N$ families. Each family has the following requirement:- 1. 1 $AC1$ (AC 1st class) ticket 2. 2 $AC2$ (AC 2nd class) ticket 3. 4 $SC$ (Sleeper Class) ticket 4. 7 $GN$ (General class) ticket There is some fault in the software and displays som
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