中间一段 Latex 炸了
查看原帖
中间一段 Latex 炸了
509896
sunnygreen楼主2023/9/15 10:27

修改:

As a programmer, you might be aware that Alfred’s algorithm can fail even when there is a set of coins with value exactly cc . For example, if Alfred has one coin worth \3,onecoinworth, one coin worth $4,andtwocoinsworth, and two coins worth $5,andthemoosecosts, and the moose costs $12,thenAlfredwilladdbothofthe, then Alfred will add both of the $5coinsto​ coins to ​Sandthengiveup,sinceaddinganyothercoinwouldcausethevalueofthecoinsin​ and then give up, since adding any other coin would cause the value of the coins in ​Stoexceed​ to exceed ​$12.Ofcourse,Alfredcouldinsteadcombineone. Of course, Alfred could instead combine one $3coin,onecoin, one$4coin,andonecoin, and one$5$ coin to reach the total.

2023/9/15 10:27
加载中...