Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -0,0 +1,14 @@
|
|||
store = [KPCSupply("beef", 38//10, 36),
|
||||
KPCSupply("pork", 54//10, 43),
|
||||
KPCSupply("ham", 36//10, 90),
|
||||
KPCSupply("greaves", 24//10, 45),
|
||||
KPCSupply("flitch", 4//1, 30),
|
||||
KPCSupply("brawn", 25//10, 56),
|
||||
KPCSupply("welt", 37//10, 67),
|
||||
KPCSupply("salami", 3//1, 95),
|
||||
KPCSupply("sausage", 59//10, 98)]
|
||||
|
||||
sack = solve(store, 15)
|
||||
println("The store contains:\n - ", join(store, "\n - "))
|
||||
println("\nThe thief should take::\n - ", join(sack, "\n - "))
|
||||
@printf("\nTotal value in the sack: %.2f €\n", sum(getfield.(sack, :value)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue