Skip to content

Commit

Permalink
Merge pull request #495 from touhidurrr/fix-toph
Browse files Browse the repository at this point in the history
  • Loading branch information
jmerle authored Sep 28, 2024
2 parents 149c86c + d304b50 commit f59d9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/problem/TophProblemParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class TophProblemParser extends Parser {

task.setName(elem.querySelector('.artifact h1').textContent.replace(/\s+/g, ' ').trim());

const limitsStr = elem.querySelector('span.dotted.limits').textContent;
const limitsStr = elem.querySelector('.artifact span[data-tippy-content]').textContent;

const [, timeAmount, timeUnit] = /([0-9.]+)(.*),/.exec(limitsStr);
task.setTimeLimit(parseFloat(timeAmount) * (timeUnit === 'ms' ? 1 : 1000));
Expand Down

0 comments on commit f59d9ba

Please sign in to comment.