General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
41096613 Practice:
eugalt
1015D - 40 Python 3 Accepted 624 ms 5592 KB 2018-08-01 23:04:32 2018-08-01 23:04:32
→ Source
n,k,s=map(int,input().split())
l=s%k*[s//k+1]+(k-s%k)*[s//k]
for i in range(1,k,2):l[i]=-l[i]
t=1
for i in range(k):l[i]+=t;t=l[i]
b=k<=s<=k*(n-1)
print(('NO','YES')[b])
if b:print(*l)
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details