aboutsummaryrefslogtreecommitdiff
path: root/challenge-326/ysth/python/ch-2.py
blob: 1e5efcb54cc5f50016bdd018190acf200bdf9e32 (plain)
1
2
3
4
5
6
import sys
from itertools import repeat, batched

ints = [ int(i) for i in sys.argv[1:] ];

print([n for ij in batched(ints, n=2) for n in repeat(ij[1], ij[0])])