General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
87005911 Practice:
GTrigger
1015D - 40 PyPy 3 Accepted 358 ms 28916 KB 2020-07-16 19:00:48 2020-07-16 19:00:48
→ 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