mirror of
https://github.com/QingdaoU/OpenVJ.git
synced 2024-12-29 07:51:45 +00:00
增加提示字段和转换PAT时间内存单位
This commit is contained in:
parent
5a687c00c4
commit
e83ecc7c24
@ -56,7 +56,11 @@ class PATRobot(Robot):
|
||||
"submit_url": r'<form accept-charset="UTF-8" action="([\s\S]*?)" method="post">'}
|
||||
data = self._regex_page(url, regex)
|
||||
data["id"] = problem_id
|
||||
data["time_limit"] = int(data["time_limit"])
|
||||
data["memory_limit"] = int(data["memory_limit"]) // 1024
|
||||
data["submit_url"] = "https://www.patest.cn" + data["submit_url"]
|
||||
# pat上都没有提示
|
||||
data["hint"] = None
|
||||
return data
|
||||
|
||||
def _regex_page(self, url, regex):
|
||||
|
@ -44,7 +44,8 @@ class Robot(object):
|
||||
"samples": [{"input": String, "output": String}],
|
||||
"spj": True/False,
|
||||
"time_limit": Int ms,
|
||||
"memory_limit": Int M}
|
||||
"memory_limit": Int M,
|
||||
"hint": String/None}
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user