General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
41100208 Practice:
eugalt
1015D - 40 Python 3 Accepted 654 ms 5980 KB 2018-08-02 03:28:47 2018-08-02 03:28:47
→ Source
n,k,s=map(int,input().split())
l=s%k*[s//k+1]+(k-s%k)*[s//k]
l[1::2]=(-x for x in l[1::2])
t=1
for i in range(k):t=l[i]=l[i]+t
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