remove striping newline character in solution scripts
This commit is contained in:
parent
bc9c52edd5
commit
3ddbd93861
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user