Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]分数能不能支持小数 #161

Open
Froggyzqy opened this issue Apr 2, 2022 · 4 comments
Open

[Feature]分数能不能支持小数 #161

Froggyzqy opened this issue Apr 2, 2022 · 4 comments
Labels
想要点新功能 | Feature Request 想要加上某些功能 观望 | Looking 我们在给高速行驶的汽车换轮胎! 需要讨论 | Need Discussion 这个问题需要大家一起讨论下呢 欢迎贡献 | Welcome To Contribute 作者不是很擅长这个或在忙别的,欢迎参与贡献

Comments

@Froggyzqy
Copy link

如题。下取整太僵硬了。如果能自定义得分保留的小数位数更好!

@Froggyzqy Froggyzqy added the 想要点新功能 | Feature Request 想要加上某些功能 label Apr 2, 2022
@Dust1404
Copy link
Member

Dust1404 commented Apr 2, 2022

这个我之前曾经因为学长要求实现过一个临时的内部版本,不过太难看了没有 push 上来。
不知道现在的新文件格式怎么样,当时为了兼容老版本弄了个十进制定点数,真的难看。

@alphagocc
Copy link
Member

如题。下取整太僵硬了。如果能自定义得分保留的小数位数更好!

但是满分可以超过100分

不知道现在的新文件格式怎么样

存分数的是JSON Number

@undefined-moe
Copy link

有一个 0.2 分的测试点,又有一个 0.1 分的测试点,然后我们就得到了—— 0.30000000000000004 分!

@alphagocc
Copy link
Member

所以这个feature听起来非常自然,但是实现起来就会非常的奇怪,主流评测系统除了CMS好像也没人支持(CMS好像还是自定义分数类型),或者说,还是写个scorer接口随你们搞吧

@alphagocc alphagocc added 观望 | Looking 我们在给高速行驶的汽车换轮胎! 欢迎贡献 | Welcome To Contribute 作者不是很擅长这个或在忙别的,欢迎参与贡献 需要讨论 | Need Discussion 这个问题需要大家一起讨论下呢 labels Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
想要点新功能 | Feature Request 想要加上某些功能 观望 | Looking 我们在给高速行驶的汽车换轮胎! 需要讨论 | Need Discussion 这个问题需要大家一起讨论下呢 欢迎贡献 | Welcome To Contribute 作者不是很擅长这个或在忙别的,欢迎参与贡献
Projects
None yet
Development

No branches or pull requests

4 participants