hdu 1398 Square Coins 又是母函数模板题~~俗话说的好,饭可一日

People in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of all square numbers up to 289 (=17^2), i.e., 1-credit coins, 4-credit coins, 9-credit coins, …, and 289-credit coins, are available in Silverland. There are four combinations of coins to pay ten credits: ten 1-credit coins,one 4-credit coin and six 1-credit coins,two 4-credit coins and two 1-credit coins, andone 9-credit coin and one 1-credit coin. Your mission is to count the number of ways to pay a given amount using coins of Silverland.

,这些那些,我们是多么的了然于心,却依然,没有任何办法。

hdu 1398 Square Coins 又是母函数模板题~~俗话说的好,饭可一日

相关文章:

你感兴趣的文章:

标签云: