remove striping newline character in solution scripts

This commit is contained in:
Wojciech Kubicki 2025-01-06 17:51:59 +01:00
parent bc9c52edd5
commit 3ddbd93861
2 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import re
import sys
for line in sys.stdin:
line = line.strip('\n')
if re.match(r'^-?[1-9][0-9]*0$|^-?[1-9][0-9]*5$|^0$', line):
print('yes')
else:

View File

@ -16,7 +16,6 @@ def get_number(c):
return result
for line in sys.stdin:
line = line.strip('\n')
if not re.match(pattern, line):
print('no')
continue