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

关于子任务依赖问题 #30

Open
AdemJensen opened this issue Aug 3, 2020 · 1 comment
Open

关于子任务依赖问题 #30

AdemJensen opened this issue Aug 3, 2020 · 1 comment

Comments

@AdemJensen
Copy link

子任务依赖系统是有的,但是没有被写入文档中

单任务依赖

subtask_dependence_5 1

以上语句可以使得5号任务组被评测前,1号任务组内的测试点必须全部正确,才会开始5号任务组的评测,否则5号任务组跳过并视为0分。

多任务依赖

可以为一个任务组指定多个依赖,如下所示:

subtask_dependence_5 many
subtask_dependence_5_1 2
subtask_dependence_5_2 4

这样,只有当2号和4号任务组内的测试点全部正确后,才会开始5号任务组的评测,否则5号任务组跳过并视为0分。

@AdemJensen
Copy link
Author

备注:由于subtask是按编号的顺序测评的,因此在定义依赖时,必须确保依赖的编号小于当前子任务编号(这也是为了防止环的形成hhh)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant