?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
79005320 |
Virtual: dominator1234# |
1015D - 40 | PyPy 3 | Accepted | 358 ms | 9204 KB | 2020-05-05 00:11:42 | 2020-05-05 00:11:42 |
n,k,s=map(int,input().split()) cur=1 if k>s or k*(n-1)<s: print("NO") else: print("YES") while k>0: l=min(n-1,s-(k-1)) if(cur>l): cur-=l else: cur+=l print(cur,end=" ") s-=l k-=1 print()
?
?
?
?