pass or fail
CodeChefOpen on judge ↗
There is an exam conducted in Anurag university. For every correct question 3 marks are added and for every incorrect answer 1 mark will be reduced. Consider every student attempted all the questions. A student will pass if his marks are greater than or eqal to ‘p’ . print ‘PASS’ if he/she passes the exam else print ‘FAIL’. Note: N is the number of questions,X is the number of correct answers,
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