16 lines
309 B
Python
16 lines
309 B
Python
import sys
|
|
|
|
|
|
with open(sys.argv[-1], "r") as f:
|
|
_ = next(f)
|
|
_ = next(f)
|
|
while True:
|
|
try:
|
|
line = next(f)
|
|
except StopIteration:
|
|
break
|
|
n = int(line.split()[0])
|
|
print(f"polygon {n}")
|
|
for _ in range(n):
|
|
print(next(f).strip())
|