({
:
-
- {cases.map((c: T, i: number) => (
- // eslint-disable-next-line react/no-array-index-key
- -
- {renderCaseSummary(c, i + 1)}
-
- ))}
-
+ {summary}
diff --git a/frontend/src/contest/submission/ValidationView.tsx b/frontend/src/contest/submission/ValidationView.tsx
index 85b22fda..68aafbd1 100644
--- a/frontend/src/contest/submission/ValidationView.tsx
+++ b/frontend/src/contest/submission/ValidationView.tsx
@@ -45,6 +45,7 @@ export function ValidationView({ output }: Props) {
diff --git a/frontend/src/types/contest.ts b/frontend/src/types/contest.ts
index f867af72..0016c1d5 100644
--- a/frontend/src/types/contest.ts
+++ b/frontend/src/types/contest.ts
@@ -17,6 +17,12 @@ type FeedbackData = {
cases: FeedbackCaseInfo[];
};
+export type Subtask = {
+ max_score: number;
+ score: number;
+ testcases: number[];
+};
+
export type Submission = {
id: string;
date: string;
@@ -26,6 +32,7 @@ export type Submission = {
input: InputData;
output: UploadedOutput;
source: UploadedSource;
+ subtasks: Subtask[];
feedback: FeedbackData;
};