E. Greedy Changetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBilly investigates the question of applyin
摘要由CSDN通过智能技术生成
E. Greedy Change
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Billy investigates the question of applying greedy algorithm to different spheres of life. At the moment he is studying the application of greedy algorithm to the problem about change. There is an amount of n coins of different face values, and the coins of eac
E. Greedy Changetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBilly investigates the question of applyin