修改:
As a programmer, you might be aware that Alfred’s algorithm can fail even when there is a set of coins with value exactly c . For example, if Alfred has one coin worth \3,onecoinworth$4,andtwocoinsworth$5,andthemoosecosts$12,thenAlfredwilladdbothofthe$5coinstoSandthengiveup,sinceaddinganyothercoinwouldcausethevalueofthecoinsinStoexceed$12.Ofcourse,Alfredcouldinsteadcombineone$3coin,one$4coin,andone$5$ coin to reach the total.