Skip to content

Commit c7752de

Browse files
committed
feat: Add seeds for math and algo book (#2785)
1 parent ffabfdb commit c7752de

File tree

2 files changed

+282
-0
lines changed

2 files changed

+282
-0
lines changed

prisma/contest_task_pairs.ts

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,139 @@ export const contest_task_pairs = [
6464
problem_id: 'math_and_algorithm_ai',
6565
problem_index: 'A06',
6666
},
67+
{
68+
contest_id: 'math-and-algorithm',
69+
problem_id: 'arc117_c',
70+
problem_index: '102',
71+
},
72+
{
73+
contest_id: 'math-and-algorithm',
74+
problem_id: 'typical90_o',
75+
problem_index: '101',
76+
},
77+
{
78+
contest_id: 'math-and-algorithm',
79+
problem_id: 'typical90_am',
80+
problem_index: '099',
81+
},
82+
{
83+
contest_id: 'math-and-algorithm',
84+
problem_id: 'abc204_d',
85+
problem_index: '096',
86+
},
87+
{
88+
contest_id: 'math-and-algorithm',
89+
problem_id: 'typical90_j',
90+
problem_index: '095',
91+
},
92+
{
93+
contest_id: 'math-and-algorithm',
94+
problem_id: 'abc140_c',
95+
problem_index: '094',
96+
},
97+
{
98+
contest_id: 'math-and-algorithm',
99+
problem_id: 'typical90_al',
100+
problem_index: '093',
101+
},
102+
{
103+
contest_id: 'math-and-algorithm',
104+
problem_id: 'typical90_y',
105+
problem_index: '090',
106+
},
107+
{
108+
contest_id: 'math-and-algorithm',
109+
problem_id: 'arc107_a',
110+
problem_index: '088',
111+
},
112+
{
113+
contest_id: 'math-and-algorithm',
114+
problem_id: 'panasonic2020_c',
115+
problem_index: '084',
116+
},
117+
{
118+
contest_id: 'math-and-algorithm',
119+
problem_id: 'typical90_n',
120+
problem_index: '083',
121+
},
122+
{
123+
contest_id: 'math-and-algorithm',
124+
problem_id: 'abc139_d',
125+
problem_index: '079',
126+
},
127+
{
128+
contest_id: 'math-and-algorithm',
129+
problem_id: 'abc186_d',
130+
problem_index: '076',
131+
},
132+
{
133+
contest_id: 'math-and-algorithm',
134+
problem_id: 'jsc2021_c',
135+
problem_index: '072',
136+
},
137+
{
138+
contest_id: 'math-and-algorithm',
139+
problem_id: 'abc075_d',
140+
problem_index: '070',
141+
},
142+
{
143+
contest_id: 'math-and-algorithm',
144+
problem_id: 'abc178_b',
145+
problem_index: '069',
146+
},
147+
{
148+
contest_id: 'math-and-algorithm',
149+
problem_id: 'typical90_d',
150+
problem_index: '067',
151+
},
152+
{
153+
contest_id: 'math-and-algorithm',
154+
problem_id: 'panasonic2020_b',
155+
problem_index: '065',
156+
},
157+
{
158+
contest_id: 'math-and-algorithm',
159+
problem_id: 'abc167_d',
160+
problem_index: '062',
161+
},
162+
{
163+
contest_id: 'math-and-algorithm',
164+
problem_id: 'abc145_d',
165+
problem_index: '052',
166+
},
167+
{
168+
contest_id: 'math-and-algorithm',
169+
problem_id: 'arc084_b',
170+
problem_index: '048',
171+
},
172+
{
173+
contest_id: 'math-and-algorithm',
174+
problem_id: 'abc007_3',
175+
problem_index: '046',
176+
},
177+
{
178+
contest_id: 'math-and-algorithm',
179+
problem_id: 'typical90_bz',
180+
problem_index: '045',
181+
},
182+
{
183+
contest_id: 'math-and-algorithm',
184+
problem_id: 'abc172_d',
185+
problem_index: '042',
186+
},
187+
{
188+
contest_id: 'math-and-algorithm',
189+
problem_id: 'abc168_c',
190+
problem_index: '036',
191+
},
192+
{
193+
contest_id: 'math-and-algorithm',
194+
problem_id: 'dp_d',
195+
problem_index: '030',
196+
},
197+
{
198+
contest_id: 'math-and-algorithm',
199+
problem_id: 'dp_a',
200+
problem_index: '028',
201+
},
67202
];

prisma/tasks.ts

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,6 +3870,13 @@ export const tasks = [
38703870
title: 'A. kcal',
38713871
grade: 'Q9',
38723872
},
3873+
{
3874+
id: 'abc204_d',
3875+
contest_id: 'abc204',
3876+
problem_index: 'D',
3877+
name: 'Cooking',
3878+
title: 'D. Cooking',
3879+
},
38733880
{
38743881
id: 'abc202_a',
38753882
contest_id: 'abc202',
@@ -3901,6 +3908,13 @@ export const tasks = [
39013908
title: 'A. Three-Point Shot',
39023909
grade: 'Q8',
39033910
},
3911+
{
3912+
id: 'abc186_d',
3913+
contest_id: 'abc186',
3914+
problem_index: 'D',
3915+
name: 'Sum of difference',
3916+
title: 'D. Sum of difference',
3917+
},
39043918
{
39053919
id: 'abc184_a',
39063920
contest_id: 'abc184',
@@ -3925,6 +3939,13 @@ export const tasks = [
39253939
title: 'A. box',
39263940
grade: 'Q10',
39273941
},
3942+
{
3943+
id: 'abc178_b',
3944+
contest_id: 'abc178',
3945+
problem_index: 'B',
3946+
name: 'Product Max',
3947+
title: 'B. Product Max',
3948+
},
39283949
{
39293950
id: 'abc174_a',
39303951
contest_id: 'abc174',
@@ -3933,6 +3954,13 @@ export const tasks = [
39333954
title: 'A. Air Conditioner',
39343955
grade: 'Q9',
39353956
},
3957+
{
3958+
id: 'abc172_d',
3959+
contest_id: 'abc172',
3960+
problem_index: 'D',
3961+
name: 'Sum of Divisors',
3962+
title: 'D. Sum of Divisors',
3963+
},
39363964
{
39373965
id: 'abc172_a',
39383966
contest_id: 'abc172',
@@ -3949,6 +3977,20 @@ export const tasks = [
39493977
title: 'A. Multiplication 1',
39503978
grade: 'Q10',
39513979
},
3980+
{
3981+
id: 'abc168_c',
3982+
contest_id: 'abc168',
3983+
problem_index: 'C',
3984+
name: ': (Colon)',
3985+
title: 'C. : (Colon)',
3986+
},
3987+
{
3988+
id: 'abc167_d',
3989+
contest_id: 'abc167',
3990+
problem_index: 'D',
3991+
name: 'Teleporter',
3992+
title: 'D. Teleporter',
3993+
},
39523994
{
39533995
id: 'abc163_a',
39543996
contest_id: 'abc163',
@@ -3981,6 +4023,13 @@ export const tasks = [
39814023
title: 'E. Rem of Sum is Num',
39824024
grade: 'D1',
39834025
},
4026+
{
4027+
id: 'abc145_d',
4028+
contest_id: 'abc145',
4029+
problem_index: 'D',
4030+
name: 'Knight',
4031+
title: 'D. Knight',
4032+
},
39844033
{
39854034
id: 'abc142_a',
39864035
contest_id: 'abc142',
@@ -3989,6 +4038,13 @@ export const tasks = [
39894038
title: 'A. Odds of Oddness',
39904039
grade: 'Q7',
39914040
},
4041+
{
4042+
id: 'abc140_c',
4043+
contest_id: 'abc140',
4044+
problem_index: 'C',
4045+
name: 'Maximal Value',
4046+
title: 'C. Maximal Value',
4047+
},
39924048
{
39934049
id: 'abc140_a',
39944050
contest_id: 'abc140',
@@ -3997,6 +4053,13 @@ export const tasks = [
39974053
title: 'A. Password',
39984054
grade: 'Q7',
39994055
},
4056+
{
4057+
id: 'abc139_d',
4058+
contest_id: 'abc139',
4059+
problem_index: 'D',
4060+
name: 'ModSum',
4061+
title: 'D. ModSum',
4062+
},
40004063
{
40014064
id: 'abc123_d',
40024065
contest_id: 'abc123',
@@ -4005,6 +4068,13 @@ export const tasks = [
40054068
title: 'D. Cake 123',
40064069
grade: 'Q1',
40074070
},
4071+
{
4072+
id: 'abc075_d',
4073+
contest_id: 'abc075',
4074+
problem_index: 'D',
4075+
name: 'Axis-Parallel Rectangle',
4076+
title: 'D. Axis-Parallel Rectangle',
4077+
},
40084078
{
40094079
id: 'abc007_3',
40104080
contest_id: 'abc007',
@@ -4020,6 +4090,27 @@ export const tasks = [
40204090
title: 'C. Honest or Liar or Confused',
40214091
grade: 'D3',
40224092
},
4093+
{
4094+
id: 'arc117_c',
4095+
contest_id: 'arc117',
4096+
problem_index: 'C',
4097+
name: 'Tricolor Pyramid',
4098+
title: 'C. Tricolor Pyramid',
4099+
},
4100+
{
4101+
id: 'arc107_a',
4102+
contest_id: 'arc107',
4103+
problem_index: 'A',
4104+
name: 'Simple Math',
4105+
title: 'A. Simple Math',
4106+
},
4107+
{
4108+
id: 'arc084_b',
4109+
contest_id: 'abc077',
4110+
problem_index: 'D',
4111+
name: 'Small Multiple',
4112+
title: 'D. Small Multiple',
4113+
},
40234114
{
40244115
id: 'arc076_c',
40254116
contest_id: 'arc076',
@@ -4531,6 +4622,13 @@ export const tasks = [
45314622
title: 'D. Knapsack 1',
45324623
grade: 'Q3',
45334624
},
4625+
{
4626+
id: 'dp_d',
4627+
contest_id: 'dp',
4628+
problem_index: 'D',
4629+
name: 'Knapsack 1',
4630+
title: 'D. Knapsack 1',
4631+
},
45344632
{
45354633
id: 'dp_c',
45364634
contest_id: 'dp',
@@ -5296,13 +5394,41 @@ export const tasks = [
52965394
title: '078. Easy Graph Problem(★2)',
52975395
grade: 'Q5',
52985396
},
5397+
{
5398+
id: 'typical90_am',
5399+
contest_id: 'typical90',
5400+
problem_index: '039',
5401+
name: 'Tree Distance(★5)',
5402+
title: '039. Tree Distance(★5)',
5403+
},
5404+
{
5405+
id: 'typical90_al',
5406+
contest_id: 'typical90',
5407+
problem_index: '038',
5408+
name: 'Large LCM(★3)',
5409+
title: '038. Large LCM(★3)',
5410+
},
5411+
{
5412+
id: 'typical90_y',
5413+
contest_id: 'typical90',
5414+
problem_index: '025',
5415+
name: 'Digit Product Equation(★7)',
5416+
title: '025. Digit Product Equation(★7)',
5417+
},
52995418
{
53005419
id: 'typical90_s',
53015420
contest_id: 'typical90',
53025421
problem_index: '019',
53035422
name: 'Pick Two(★6)',
53045423
title: '019. Pick Two(★6)',
53055424
},
5425+
{
5426+
id: 'typical90_o',
5427+
contest_id: 'typical90',
5428+
problem_index: '015',
5429+
name: "Don't be too close(★6)",
5430+
title: "015. Don't be too close(★6)",
5431+
},
53065432
{
53075433
id: 'typical90_n',
53085434
contest_id: 'typical90',
@@ -5455,6 +5581,20 @@ export const tasks = [
54555581
title: 'G. Wildcards',
54565582
grade: 'Q1',
54575583
},
5584+
{
5585+
id: 'panasonic2020_c',
5586+
contest_id: 'panasonic2020',
5587+
problem_index: 'C',
5588+
name: 'Sqrt Inequality',
5589+
title: 'C. Sqrt Inequality',
5590+
},
5591+
{
5592+
id: 'panasonic2020_b',
5593+
contest_id: 'panasonic2020',
5594+
problem_index: 'B',
5595+
name: 'Bishop',
5596+
title: 'B. Bishop',
5597+
},
54585598
{
54595599
id: 'panasonic2020_a',
54605600
contest_id: 'panasonic2020',
@@ -5463,4 +5603,11 @@ export const tasks = [
54635603
title: 'A. Kth Term',
54645604
grade: 'Q8',
54655605
},
5606+
{
5607+
id: 'jsc2021_c',
5608+
contest_id: 'jsc2021',
5609+
problem_index: 'C',
5610+
name: 'Max GCD 2',
5611+
title: 'C. Max GCD 2',
5612+
},
54665613
];

0 commit comments

Comments
 (0)