General
 
 
# 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
→ Source

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()
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details