General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
41085660 Practice:
eugalt
1015D - 40 Python 3 Accepted 577 ms 8052 KB 2018-08-01 17:06:27 2018-08-01 17:06:27
→ Source
from itertools import*
n,k,s=map(int,input().split())
if s<k or(s-1)//k>n-2:print('NO')
else:
 print('YES');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