Monday, April 24, 2017

uva problem-12897 Decoding baby boss

problem link:


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.

Thursday, March 23, 2017

uva problem-12700 Banglawash

problem link:
In this you just you have to simply count win loss tie and draw then just establish a simple logic

Sunday, March 19, 2017

uva problem 10550 - Combination Lock

In this problem you have to find the number of angle you turn the lock to unlock... First there is must three turn so we can count first 3*360 angle then you have to find the minimum distance between the point and have to count the  angle multiplying digit by 9.

try this after trying if you don't understand then only see the code.otherwise you can't improve yourself in programming.

10929 - You can say 11 uva probelm

In this problem you have to determine weather a number is multiple of  11.
Now what you have to just find the sum of all the digit of the number then  divide it by 11.
if it's divisible by 11 then the number also divisible by 11.

Or, just sum the digit of the number which is odd and which is even. then find the difference between the odd position digit sum and even position digit sum. if it's 0 or divisible by 11 then the number also divisible by 11.

at first try yourself, and if you can't after trying then only see the code otherwise you can't improve yourself in programming.

11689 - Soda Surpler uva problem

Problem link:
This is the easy simulation of problem. just make the sum of 'e' and 'f' and play loop till (sum>=cost)
then do temp=sum/cost  and   answer+=sum then sum%=cost and now sum+=sum


if you don't understand after try then only see the code otherwise you can't improve in programming

Thursday, March 16, 2017

uva problem Zapping-12468

problem link:
Discuss:
In this problem you have to find the minimum number of key press need to go desire channel.
You have only two button in your remote. firstly you just make the difference between the channel.
hence the channel from 0 to 99 and you can go backward so if the difference between channel more then or equal 50 then substitute it from 50.
to make difference between two channel you can use abs() function.


at first try yourself, if you can't then only see the code otherwise you can't increase your skill in programming


Saturday, January 14, 2017

Random Thought

I admit university with a lot of ambition .From my childhood i'm very interested about Technology.I fixed it that i will read in Computer Science and Engineering.After my admission i tried to be a best Engineer but due to some upsetness i just left behind from few of my class mate.They know many things about programming.as they have some relative who stduied in CSE.they can answer all thing that sir asked.and sir give his lecture in that level  this is reason that force many students stay behind and stay upset including me.
So,from then i decide that i'll learn programming and i will do better.
Now i know the pain of those students who does not understand his varsity classes.this problem mainly face the rural area students.
that's why i start to write a blog for help those student.
From now i'll write in this blog regularly.it's may help the students who are new commer  in programming as well as who are anxious about programming.