com
This commit is contained in:
parent
bd18802057
commit
941660f05e
BIN
TaskA00/.run.swp
Normal file
BIN
TaskA00/.run.swp
Normal file
Binary file not shown.
0
TaskA00/Makefile
Normal file
0
TaskA00/Makefile
Normal file
17
TaskA00/run
Normal file
17
TaskA00/run
Normal file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import re
|
||||
|
||||
def is_number(test):
|
||||
pattern = re.compile(r'^\-?\d*[05]$')
|
||||
|
||||
result = re.match(pattern, test)
|
||||
if result:
|
||||
return "yes"
|
||||
else:
|
||||
return "no"
|
||||
|
||||
x = input()
|
||||
while x:
|
||||
print(is_number(x))
|
||||
x = input()
|
Loading…
Reference in New Issue
Block a user