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