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