Codeforces - Arcology-On-Permafrost

本文最後更新於:2025年7月20日 早上

Codeforces - Arcology-On-Permafrost

Arcology-On-Permafrost.py

# Author : ysh
# 2025/04/10 Thu 11:26:16
# https://codeforces.com/contest/2084/problem/D
for _ in range(int(input())):
    a, b, c = [int(i) for i in input().split()]
    # f = [0] * a
    l = max((a // (b + 1)), c)
    f = [i % l for i in range(a)]
    # print(f)
    print(' '.join(map(str, f[:a])))

Codeforces - Arcology-On-Permafrost
http://mysh212.github.io/algosolution/Arcology-On-Permafrost.py/
作者
ysh
發布於
2025年4月10日
更新於
2025年7月20日
許可協議