More information
Faisal
This blog is about the CIS Speed Programming contests which will be organized in NED.
[Taken from the internet]
Description:
You are given a limited number of coins of various denominations, and a certain amount. You are to compute how many ways there are to pick the coins to add up to that amount. For example, given 12 coins of 1-cent value, 2 coins of 5-cent value and 3 coins of 10-cent value, and an amount of 15 cents, there are 4 combinations:
The answer therefore should be 4.
The first line of the input file consists of a single positive integer indicating the number of different coin denominations. The next line of the input file consists of a single positive integer representing the total amount. The remaining lines of the input file each consist of a pair of positive integer representing a coin denomination followed by the number of coins of that denomination available. All numbers are in the range of [1, 100].
The sample input and output are shown below.
Sample input:
3 |
Sample output:
4 |
Following is a tentative list of languages you can use to code the problems in:
You will need to focus on following programming areas for the competition:
CIS Infinity is the CIS Speed Programming competition happening for the first time in the history of CIS department of NED University, organized by Batch 2002-2003 students. The event is scheduled to happen on May 9, 2005 in the CIS department with a total 16 teams participating from each batch. Details of competition will be posted on this blog very soon. Please stop-by to see sample questions and tips for the competition! See you on May 9th.
Date: May 9, 2005
Venue: CIS Department, NED
Faisal