@@ -246,10 +246,10 @@ def read_legacy_cases(config, open):
246246 num_cases = int (config .readline ())
247247 for line in islice (csv .reader (config , delimiter = '|' ), num_cases ):
248248 input , output , time_str , score_str = line [:4 ]
249- # try:
250- # memory_bytes = int(float(line[4]) * 1024)
251- # except (IndexError, ValueError):
252- memory_bytes = DEFAULT_MEMORY_BYTES
249+ try :
250+ memory_bytes = int (float (line [4 ]) * 1024 )
251+ except (IndexError , ValueError ):
252+ memory_bytes = DEFAULT_MEMORY_BYTES
253253 yield DefaultCase (partial (open , path .join ('input' , input )),
254254 partial (open , path .join ('output' , output )),
255255 int (float (time_str ) * 1000000000 ),
@@ -262,7 +262,7 @@ def read_yaml_cases(config, open):
262262 yield DefaultCase (partial (open , case ['input' ]),
263263 partial (open , case ['output' ]),
264264 parse_time_ns (case ['time' ]),
265- parse_memory_bytes (case ['memory' ]),
265+ parse_memory_bytes (case ['memory' ]) * 10 ,
266266 int (case ['score' ]))
267267 else :
268268 yield CustomJudgeCase (partial (open , case ['input' ]),
0 commit comments