Engineering
Engineering, 28.11.2019 04:31, moutchyjoseph

Alice owns a shop in elbonia, and she takes great pride in varying the way that she makes change for her customers. she gives them one coin at a time, and tries to give the customers a sequence of coins that she has never used before. it that in elbonia the denominations and names for the coins change every year.
input format the first line of input contains an integer n, 1 < = n < = 20, which indicates the number of coin denominations currently in use. the next line contains n positive integers, each less than 1000, which give the coin denomenations. note that each denomenation will be unique, and there will always be one denomenation equal to 1. the next line gives a value 9, 1 < = q< = 10 which provides the number of coin queries. the following qlines each contain a query in the form of an integer ci, 1 < = c; < = 10%. note: the denominations are not necessary unique. in other words, it is possible that elbonia is using two coins both equal to one. however, one would distinguish sequences based on the type of coin used, not the denomination.
output format for each query, you should output, on a line by itself, the number of distinct sequences of coins that alice can use to make change equal to c; since this number can be very large, you should output the result mod 10° + 7.

answer
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, keigleyhannah30
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
image
Engineering, 04.07.2019 18:10, Talos02
Burgers vector is generally parallel to the dislocation line. a)-true b)-false
Answers: 2
image
Engineering, 04.07.2019 18:10, mamasbug4285
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
image
Engineering, 04.07.2019 19:10, ultimateapes
When subject to a steady load (within elastic range) over a long period of time, what is the major difference in material behavoir between steel and plastic?
Answers: 2
Do you know the correct answer?
Alice owns a shop in elbonia, and she takes great pride in varying the way that she makes change for...

Questions in other subjects:

Konu
Geography, 17.09.2019 18:10