e00
This commit is contained in:
parent
f3924b4961
commit
9e915b26ba
18
TaskE00/run.py
Normal file
18
TaskE00/run.py
Normal file
@ -0,0 +1,18 @@
|
||||
import re
|
||||
|
||||
def check_number_divisible_by_5(input_string):
|
||||
pattern = r'^[1-9]*(0|5)$'
|
||||
|
||||
if re.match(pattern, input_string):
|
||||
print('yes')
|
||||
else:
|
||||
print('no')
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
while True:
|
||||
line = input()
|
||||
check_number_divisible_by_5(line)
|
||||
|
||||
except EOFError:
|
||||
pass
|
Loading…
Reference in New Issue
Block a user