General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
76664426 Practice:
vjudge4
1015D - 40 Python 3 Accepted 343 ms 8040 KB 2020-04-14 10:05:35 2020-04-14 12:05:34
→ Source
from itertools import*
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])
l[0]+=1
b=k<=s<=k*(n-1)
print(('NO','YES')[b])
if b:print(*accumulate(l))
	  		  				  	   					  		
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details