⌨️

[AtCoder]ABC-340|A - Arithmetic Progression

2024/03/19に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


def main():
    a, b, d = getIntMap()

    buf = []
    for i in range(a, b + 1, d):
        buf.append(str(i))

    print(" ".join(buf))


if __name__ == "__main__":
    main()

Discussion