15 lines
362 B
Python
15 lines
362 B
Python
|
import re
|
||
|
|
||
|
|
||
|
def check_number(file_path):
|
||
|
with open(file_path, 'r', encoding='utf-8') as file:
|
||
|
pattern = r'^(25|50|75|100|[1-9]\d*(25|50|75|00))$'
|
||
|
for line in file:
|
||
|
if re.match(pattern, line.strip()):
|
||
|
print('yes')
|
||
|
else:
|
||
|
print('no')
|
||
|
|
||
|
file_path = 'TaskE01/test.in'
|
||
|
check_number(file_path)
|