onlinejudge_template.analyzer.topcoder module

the module to parse the class definition of problems of Topcoder from thier HTML

exception onlinejudge_template.analyzer.topcoder.TopcoderParserError[source]

Bases: onlinejudge_template.types.AnalyzerError

onlinejudge_template.analyzer.topcoder.convert_topcoder_class_definition_to_input_format(definition: onlinejudge_template.types.TopcoderClassDefinition) → onlinejudge_template.types.FormatNode[source]
onlinejudge_template.analyzer.topcoder.convert_topcoder_class_definition_to_input_variables(definition: onlinejudge_template.types.TopcoderClassDefinition) → Dict[NewType.<locals>.new_type, onlinejudge_template.types.VarDecl][source]
onlinejudge_template.analyzer.topcoder.convert_topcoder_class_definition_to_output_format(definition: onlinejudge_template.types.TopcoderClassDefinition) → onlinejudge_template.types.FormatNode[source]
onlinejudge_template.analyzer.topcoder.convert_topcoder_class_definition_to_output_variables(definition: onlinejudge_template.types.TopcoderClassDefinition) → Dict[NewType.<locals>.new_type, onlinejudge_template.types.VarDecl][source]
onlinejudge_template.analyzer.topcoder.is_topcoder_url(url: str) → bool[source]
onlinejudge_template.analyzer.topcoder.parse_topcoder_class_definition(html: bytes, *, url: str) → onlinejudge_template.types.TopcoderClassDefinition[source]

parse_topcoder_class_definition parses the Definition section of the problem from HTML.

Raises:TopcoderParserError