India’s Best Job Seekers and Training Platform Forums Algorithm Solutions Discussion Given an integer S, you have to count the total …

  • Given an integer S, you have to count the total …

  • Akash 

    Administrator
    at

    Given an integer S, you have to count the total number of integral solutions of the equation a+b^2+c^3+d^4<=S, such that 0<=a,b,c,d<=10000 and 0<S<10^15

    Edit: Here value can be less than or equal to S, so if input S= 2 ,then output=12

    i.e we can consider 0,0,0,1 and 0,0,0,0 etc also as sum will be less than S(i.e 2)

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 19th October 2020. Attend one week free demo classes.Register Now

New Report

Close