mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
1 parent
784180c0a9
commit
1ba52c5a18
2 files changed
+4
-3
No files matched your search
@@ -38,8 +38,9 @@ export async function judge({
|
||||
time: 0,
|
||||
memory: 0,
|
||||
};
|
||||
if (typeof ansInfo[0] === 'string') {
|
||||
if (ansInfo[0]?.trim() === (answers[key] as any)?.trim()) {
|
||||
if (typeof answers[key] === 'string') {
|
||||
const stdAns = typeof ansInfo[0] === 'string' ? [ansInfo[0]] : ansInfo[0];
|
||||
if (stdAns.some((ans) => ans.trim() === (answers[key] as any)?.trim())) {
|
||||
totalScore += score;
|
||||
totalStatus = Math.max(totalStatus, STATUS.STATUS_ACCEPTED);
|
||||
next({
|
||||
|
||||
Reference in new issue
Block a user