Skip to content

Commit af07005

Browse files
committed
feat: Remove newlines at start when fetching input
1 parent 61b96bc commit af07005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeforces/problem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_info(contest_id, index, gym=False, lang='en'):
5858
memory_limit = soup.find_all("div", class_="memory-limit")[0].text[21:]
5959

6060
inputs = [
61-
i.pre.get_text('\n') for i in soup.find_all("div", class_="input")
61+
i.pre.get_text('\n').lstrip('\n') for i in soup.find_all("div", class_="input")
6262
]
6363

6464
outputs = [

0 commit comments

Comments
 (0)