Ghaint Fraction
CodeChefOpen on judge ↗
GHAINT FRACTION Problem description. A fraction is called a 'GHAINT FRACTION' if it satisfies the following conditions- 1) The sum of numerator and denominator when divided by 7 leaves remainder 5 2)The absolute value of difference of numerator and denominator is a prime number 3)Numerator raised to power denominator is less than the factorial of the greater of numerator and denominator. If
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