by Shipu Ahamed | Nov 30, 2012 | Contest |

Problem J Profit-Loss Problem Statement: Kamal is the only son of Mr. Zamal. Kamal has recently completed his graduation, but he is very much relaxed to get a job. So, Mr. Zamal established a super store for him where Kamal can sell all the grocery, fashion, toiletries and garment items. Since, Kamal is careless about calculating profit and loss for all the sold products, Mr. Zamal requests you to write such a program which can find out percentage of profit/loss for a sold product. Input: The first line denotes number of test case. The second line contains a number X (1<=N<=<32000) denotes purchase price of a product. The third line contains number M (1<=M<=<32000) denotes sold price of that specific product. Output: Output contains according to the number of the test cases. Shows “Profit/loss: X%”, where X is the percentage of profit or loss. Sample Input/Output: Sample input Sample output 2 100 75 3000 3200 Loss:25% Profit: 6.6% ______________________________________________________________________________Problem Setter: Md. Mijanur Rahman, Asst. Professor, Dept. of CSE Bangladesh University of Business and Technology (BUBT) At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming...
by Shipu Ahamed | Nov 30, 2012 | Contest |

Problem I Mathematics for Jane Background Story Steven and Grace want to teach basic Mathematics to their baby daughter, Jane.Grace bought “flash cards” that contains one or more dots.Here are some examples of those cards: Card 1: Card 2: Card 3: ——- ——- ——- | | | * | |* * | | * | | | | *| | | | * | |* * | ——- ——- ——- Card 1 is actually number 1, Card 2 is number 2, Card 3 is number 5. The creator of these flash cards claims that babies can spot the number of dots faster than adults. Problem Description The issue here is that my wife Grace only bought N such cards, and some of them are the same.Steven wants to teach more numbers to Jane… Suddenly Steven realizes that he can actually combine two cards to produce a new number!!For example, if Steven combines Card 1 and Card 3, he can teach Jane number: 1+5 = 6 :).Being a computer scientist, Steven wonders, how many different numbers that he can teach to Jane by using single card and also by combining two cards? Input For each test case there are two line. First line contain one integer, N (1 <= N <= 20), that denotes the number of flash cards bought by Grace. Then next line contain Npositive integers less than 100 that denote the number of dots on each flash card. These N flash cards are not necessarily unique as described in the problem description above. Output For each test case, print an integer in one line to answer Steven’s...
by Shipu Ahamed | Nov 30, 2012 | Contest |

Problem H Find the Summation Input: standard input Output: standard output Problem Professor Edward is very angry with his students, because they have not completed his home task. As a result, he boycotts the classroom. Students realize their wrong. They go to the professor’s room and acknowledge their fault. Professor Edward give the students one condition : If they can find the summation of a series, then he will return to the classroom. The series is: S=∑_(K=0)^N 〖(2K+6K^2)〗 You will be given N, find the summation of this series as soon as possible. Input The first line of input will contain an integer T(1<=T<=10)that will determine the number of test cases. Each case starts with one integer N(1<=N<=100). Output For each test case, output the line “Case #x: S“, where x is the number of the test case, S is the summation of the series. Sample Input: 3 1 5 16 Sample Output: Case #1: 8 Case #2: 360 Case #3: 9248 ______________________________________________________________________________Problem Setter: Forhad Ahmed, ACM ICPC World Finalist, 2012 Shahjalal University of Science and Technology (SUST)Special Thanks: Mahfuzur Rahman At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming...
by Shipu Ahamed | Nov 30, 2012 | Contest |

Problem F Summation of Digits of NumberInput: standard input Output: standard output The Problem: Fahad and Zihad are two brother. Fahad read CSE program. Zihad pass H.S.C and waiting for admission. Zihad wants to be a electrical engineer. But his father and mother wants that zihad will be a computer scientist. Fahad realize the mater and decide that he will write some interesting program for his brother so that he becomes interest for study computer science. From this point of view he wants to write a program that will take an integer number as input and calculate the sum of its digits as output. Input Input will contain an integer number N (1<=N<= – 1). Output For each input, output the summation of each digit of the number N. Sample Input 142 36 1208 Sample Output 7 9 11 ______________________________________________________________________________Problem Setter: Mijanur Rahmann, Lecturer, Dept. of CSE Bangladesh University of Business and Technology (BUBT) At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming...
by Shipu Ahamed | Nov 30, 2012 | Contest |

Problem G Salary Report Input: standard input Output: standard output Problem Nahid, Suhel and Eather are three friends. They are also working to make a global platform for students’ community, ‘www.unicampuz.com’. They decide to do some campaign in different universities to let other students known about unicampuz. But, they don’t have sufficient money to do this. They decide to do outsourcing. They choose that name of their team is ‘codesum’. There have few programmers in codesum. But, a problem arises. Everyone is not working equally. So, admin decide to make salary system based on hour. So, they hire you to help them to know their Salary after M month. Input For each test case there is four line input. The first line contain an integer N (1<=Dn<=100) enotes number of employee. The second line contains an integer M (0<=M<=12) denotes total month that we want to calculate. The third line contain a decimal number R (0<=R<=500) represent ret per hour. Finally the forth line contain N different integer number that represent the hour employee works respectively. Output The output will print the salary of each employee in a single line. Sample Input Sample Output 5 2 200.50 80 70 85 15 0 4 3 150.25 100 90 75 55 20 34085 32080 28070 6015 0 ______________________________________________________________________________Problem Setter: Iftekhar Ahmed Eather, Dept. of CSE Bangladesh University of Business and Technology (BUBT) At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming...