attempt-1
This commit is contained in:
parent
84bf82a748
commit
2316c1e4a7
0
TaskA03/Makefile
Normal file
0
TaskA03/Makefile
Normal file
16
TaskA03/run
Normal file
16
TaskA03/run
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import sys
|
||||||
|
def num(x):
|
||||||
|
if x >= '0' and x <= '9':
|
||||||
|
return True
|
||||||
|
def rok(line):
|
||||||
|
x = line.find('19')
|
||||||
|
while x>= 0 and x < len(line):
|
||||||
|
if num(line[x+2]) and num(line[x+3]) and line[x+4] == ' ' and line[x+5] == 'r' and line[x+6] == '.':
|
||||||
|
return print(line.rstrip('\n'))
|
||||||
|
else:
|
||||||
|
x = line.find('19', x+2)
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
rok(line)
|
Loading…
Reference in New Issue
Block a user