This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* coupon.scala | |
* | |
* Usage:% scala couponopt.scala <支払総額> <50円の枚数> <100円の枚数> <500円の枚数> | |
* 使用可能でかつ最小の枚数になる組み合わせを表示する | |
*/ | |
object Coupon{ | |
def selectOptimalCoupons(total:Int, coupon:List[Int]) :Unit= { |