Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
696 changes: 74 additions & 622 deletions docs/guides/how-to-add-contest-table-provider.md

Large diffs are not rendered by default.

105 changes: 105 additions & 0 deletions prisma/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8354,6 +8354,111 @@ export const tasks = [
name: '4/N',
title: 'C. 4/N',
},
{
id: 'awc0150_a',
contest_id: 'awc0150',
problem_index: 'A',
name: 'Dummy Problem A',
title: 'A. Dummy Problem A',
},
{
id: 'awc0150_b',
contest_id: 'awc0150',
problem_index: 'B',
name: 'Dummy Problem B',
title: 'B. Dummy Problem B',
},
{
id: 'awc0150_c',
contest_id: 'awc0150',
problem_index: 'C',
name: 'Dummy Problem C',
title: 'C. Dummy Problem C',
},
{
id: 'awc0150_d',
contest_id: 'awc0150',
problem_index: 'D',
name: 'Dummy Problem D',
title: 'D. Dummy Problem D',
},
{
id: 'awc0150_e',
contest_id: 'awc0150',
problem_index: 'E',
name: 'Dummy Problem E',
title: 'E. Dummy Problem E',
},
{
id: 'awc0150_f',
contest_id: 'awc0150',
problem_index: 'F',
name: 'Dummy Problem F',
title: 'F. Dummy Problem F',
},
{
id: 'awc0150_g',
contest_id: 'awc0150',
problem_index: 'G',
name: 'Dummy Problem G',
title: 'G. Dummy Problem G',
},
{
id: 'awc0150_h',
contest_id: 'awc0150',
problem_index: 'H',
name: 'Dummy Problem H',
title: 'H. Dummy Problem H',
},
{
id: 'awc0150_i',
contest_id: 'awc0150',
problem_index: 'I',
name: 'Dummy Problem I',
title: 'I. Dummy Problem I',
},
{
id: 'awc0150_j',
contest_id: 'awc0150',
problem_index: 'J',
name: 'Dummy Problem J',
title: 'J. Dummy Problem J',
},
{
id: 'awc0150_k',
contest_id: 'awc0150',
problem_index: 'K',
name: 'Dummy Problem K',
title: 'K. Dummy Problem K',
},
{
id: 'awc0150_l',
contest_id: 'awc0150',
problem_index: 'L',
name: 'Dummy Problem L',
title: 'L. Dummy Problem L',
},
{
id: 'awc0150_m',
contest_id: 'awc0150',
problem_index: 'M',
name: 'Dummy Problem M',
title: 'M. Dummy Problem M',
},
{
id: 'awc0150_n',
contest_id: 'awc0150',
problem_index: 'N',
name: 'Dummy Problem N',
title: 'N. Dummy Problem N',
},
{
id: 'awc0150_o',
contest_id: 'awc0150',
problem_index: 'O',
name: 'Dummy Problem O',
title: 'O. Dummy Problem O',
},
{
id: 'awc0101_a',
contest_id: 'awc0101',
Expand Down
74 changes: 64 additions & 10 deletions src/features/tasks/fixtures/contest-table/contest_table_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -951,15 +951,16 @@ const [awc0102_a, awc0102_b, awc0102_c, awc0102_d, awc0102_e] = createContestTas
{ taskTableIndex: 'E', statusName: AC },
]);

const [awc9999_a, awc9999_b, awc9999_c, awc9999_d, awc9999_e] = createContestTasks('awc9999', [
// AWC 0101-0149: 5 tasks (A, B, C, D, E)
const [awc0149_a, awc0149_b, awc0149_c, awc0149_d, awc0149_e] = createContestTasks('awc0149', [
{ taskTableIndex: 'A', statusName: AC },
{ taskTableIndex: 'B', statusName: PENDING },
{ taskTableIndex: 'B', statusName: AC_WITH_EDITORIAL },
{ taskTableIndex: 'C', statusName: AC },
{ taskTableIndex: 'D', statusName: TRYING },
{ taskTableIndex: 'E', statusName: AC_WITH_EDITORIAL },
{ taskTableIndex: 'D', statusName: PENDING },
{ taskTableIndex: 'E', statusName: TRYING },
]);

export const taskResultsForAWC0101OnwardsProvider: TaskResults = [
export const taskResultsForAWC0101To0149Provider: TaskResults = [
awc0101_a,
awc0101_b,
awc0101_c,
Expand All @@ -970,9 +971,62 @@ export const taskResultsForAWC0101OnwardsProvider: TaskResults = [
awc0102_c,
awc0102_d,
awc0102_e,
awc9999_a,
awc9999_b,
awc9999_c,
awc9999_d,
awc9999_e,
awc0149_a,
awc0149_b,
awc0149_c,
awc0149_d,
awc0149_e,
];

// AWC0150 (special edition): 15 tasks (A-O)
const [
awc0150_a,
awc0150_b,
awc0150_c,
awc0150_d,
awc0150_e,
awc0150_f,
awc0150_g,
awc0150_h,
awc0150_i,
awc0150_j,
awc0150_k,
awc0150_l,
awc0150_m,
awc0150_n,
awc0150_o,
] = createContestTasks('awc0150', [
{ taskTableIndex: 'A', statusName: AC },
{ taskTableIndex: 'B', statusName: AC },
{ taskTableIndex: 'C', statusName: AC_WITH_EDITORIAL },
{ taskTableIndex: 'D', statusName: AC },
{ taskTableIndex: 'E', statusName: TRYING },
{ taskTableIndex: 'F', statusName: AC_WITH_EDITORIAL },
{ taskTableIndex: 'G', statusName: TRYING },
{ taskTableIndex: 'H', statusName: PENDING },
{ taskTableIndex: 'I', statusName: PENDING },
{ taskTableIndex: 'J', statusName: PENDING },
{ taskTableIndex: 'K', statusName: PENDING },
{ taskTableIndex: 'L', statusName: PENDING },
{ taskTableIndex: 'M', statusName: PENDING },
{ taskTableIndex: 'N', statusName: PENDING },
{ taskTableIndex: 'O', statusName: PENDING },
]);

export const taskResultsForAWC0150Provider: TaskResults = [
awc0150_a,
awc0150_b,
awc0150_c,
awc0150_d,
awc0150_e,
awc0150_f,
awc0150_g,
awc0150_h,
awc0150_i,
awc0150_j,
awc0150_k,
awc0150_l,
awc0150_m,
awc0150_n,
awc0150_o,
];
Loading
Loading