DoraHacks 发起人 Eric Zhang: 用累进税系统缓解二次方资助中的不平等问题(6)
时间:2021-07-13 10:27来源:未知 作者:admin 点击:
次
( 1 - k ) ** 2 this . area += added p . area += added p . vote += 1 if ( p . area this . top ) { this . top = p . area } } } function test ( rules , votes , ps ) { for ( let k = 0 ; k votes . length ;
(1 - k)**2
this.area += added
p.area += added
p.vote += 1
if (p.area > this.top) {
this.top = p.area
}
}
}
function test(rules, votes, ps) {
for (let k = 0; k < votes.length; k++) {
const v = votes[k]
const p = ps[k]
for (let n = 0; n < v; n++) {
let i = 0
while (p[i] && Math.random() > p
(责任编辑:admin) |
织梦二维码生成器
------分隔线----------------------------