Repository navigation
只有第一个WA的点展开是刻意设计吗? #43
Answered
by
langningchen
marscheng1
asked this question in
Q&A
|
根据 cphNg.ts 的 879:902 行: for (const tc of problem.tcs) {
if (this.runAbortController?.signal.aborted) {
if (this.runAbortController.signal.reason === 'onlyOne') {
this.runAbortController = new AbortController();
} else {
tc.result!.verdict = TCVerdicts.SK;
continue;
}
}
await this.runner.run(
problem,
tc.result!,
this.runAbortController,
srcLang,
tc,
compileData,
);
if (!hasExpandStatus) {
tc.isExpand = isExpandVerdict(tc.result!.verdict);
this.emitProblemChange();
hasExpandStatus = tc.isExpand;
}
}只有第一个应该展开的点才会被展开。 感觉直接都展开就好了呀,一般的题也不会有很多点,就算很多点都WA了找到后面的点也不困难。 如果是bug那就赶快修了吧。 |
Answered by
langningchen
Sep 13, 2025
Replies: 3 comments
|
在luogu上看到了关于这个的反馈,看了一下代码发现了这个,而且根据我的测试,如果有三个点WA,有时候会出现第一个和第三个都被展开了的情况,但是复现很不稳定 |
0 replies
|
是这样设计的,我记得原版 CPH 好像也是这样吧 洛谷上面我是私信回复的那个人 关于同时展开第一个和第三个测试点的问题,估计可能是 Bug,如果能找到复现方法可以反馈 |
0 replies
Answer selected by
langningchen
|
还有一个不展开的原因是:不展开的测试点不用前端渲染,可以提升性能防止卡顿,如果在测试点校对的时候全部展开会影响性能 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是这样设计的,我记得原版 CPH 好像也是这样吧
洛谷上面我是私信回复的那个人
关于同时展开第一个和第三个测试点的问题,估计可能是 Bug,如果能找到复现方法可以反馈