DoraHacks 发起人 Eric Zhang: 用累进税系统缓解二次方资助中的不平等问题(5)
时间:2021-07-13 10:27来源:未知 作者:admin 点击:
次
area += p . vote p . area += p . vote p . vote += 1 } } class Rules2 extends Rule { constructor () { super () this . top = 1 } vote ( i ) { const index = Math . min ( i , this . projects . length - 1
area += p.vote
p.area += p.vote
p.vote += 1
}
}
class Rules2 extends Rule {
constructor() {
super()
this.top = 1
}
vote(i) {
const index = Math.min(i, this.projects.length - 1)
const p = this.projects[index]
const k = Math.max(Math.min(1, (p.area - 5000) / this.top), 0)
* p.area / Math.max(1, this.area)
const added = p.vote *
(责任编辑:admin) |
织梦二维码生成器
------分隔线----------------------------