You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here, a means maxT, b means maxN and c means sumN.....
we can 1st compute c/b and store in x and c%b and store in y.
check if our x value is smaller than given maxT i.e., a, if yes we need to do x multiplied by sqare of maxN i.e., b and add it to square of y { here we have added the remainder square and x times b square }
if no, just multiply maxT with square of maxN i.e., a * (b * b)