Discussion : In this problem make sum of every digit of number. if until the sum less then 10 or 1. replace n with sum. if sum=1 then number is happy otherwise unhappy.
at first try yourself,if you can't then only see the code.
It is just a simple problem to solve.Just subtract hour from 11. if it is less than or equal 0 then add 12 with hour. and for min if it is not equal to zero than subtract min from 60. and for align use %02 specifier .
at first try yourself but if you can't then only see the code.
Discussion : in this problem we just have to sort the evening and morning hours. then add with smallest one with greatest one then compare it with d. if it exceed then multiple with over time rate
discussion: Just compare the value of H if H is large then downward acceleration also large..
if H and large H is equal then compare the volume of them the large volume should assign to the large volume.
here are the code, before see the code try yourself first. otherwise you can't develop in programmin
discussion: if you do this program just like compare every element in every exchange then you will got time limit. so, to avoid this you just set your alphabet order then replace them with desire character. and last compare your alphabet set and replace main string.
try your self first then if you can't see the code,otherwise you can't improve yourself in programming.