Cube
CodeChefOpen on judge ↗
Ishpreet is good at maths and he is very fond of cubes. Bikram his younger brother tries to test him. He gives him N numbers and asked if he could find the probability that sum of any three numbers from the given N numbers is a cube number. Ishpreet is unable to solve this problem despite being good at cubes. Being a good friend he asked you for help. Please help him to solve this problem. Input
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