forked from miczar1/djfz-24_25
task3 dla simpple, brak danych dla polish_wiki
This commit is contained in:
parent
d9c12d5d2f
commit
bf20d2f3a0
10
TaskA03/task3.py
Normal file
10
TaskA03/task3.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
with open("simple.in", encoding="utf-8") as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
for line in lines:
|
||||||
|
line = line.strip()
|
||||||
|
line = line.split()
|
||||||
|
for i in range(len(line)-1):
|
||||||
|
if line[i][:2] == "19":
|
||||||
|
if 0 < int(line[i][3:4]) < 99:
|
||||||
|
if line[i+1][:2] == "r.":
|
||||||
|
print(" ".join(line))
|
Loading…
Reference in New Issue
Block a user