Demo entry 6657654

cfair

   

Submitted by anonymous on Nov 04, 2017 at 07:03
Language: Python 3. Code size: 162 Bytes.

def c_fair(c, payoffs):
    total = 0

    for i in payoffs:
        total += i
        
    return knapsack(payoffs, payoffs, 0.5 * total, 0.5 * c * total)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).