Skip to content

Commit 2de015d

Browse files
committed
fix(problem): Fix code to get testcases in get_info
1 parent 78af61a commit 2de015d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeforces/problem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def get_info(contest_id, index, lang='en'):
4747
time_limit = soup.find_all("div", class_="time-limit")[0].text[19:]
4848
memory_limit = soup.find_all("div", class_="memory-limit")[0].text[21:]
4949

50-
i = [i.pre.string[1:] for i in soup.find_all("div", class_="input")]
51-
o = [i.pre.string[1:] for i in soup.find_all("div", class_="output")]
50+
i = [i.pre.text.lstrip('\n') for i in soup.find_all("div", class_="input")]
51+
o = [i.pre.text.lstrip('\n') for i in soup.find_all("div", class_="output")]
5252

5353
sample_tests = zip(i, o)
5454

0 commit comments

Comments
 (0)