General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
113684783 Practice:
ashu_is_trying...
1015D - 40 C++14 (GCC 6-32) Accepted 46 ms 12 KB 2021-04-21 10:08:34 2021-04-21 10:08:34
→ Source
#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long n,k,s,t=1,x;cin>>n>>k>>s;
  if(s<k||s>(n-1)*k){cout<<"NO";exit(0);}
  cout<<"YES\n";
  while(k--)
  {
    x=min(n-1,s-k);s-=x;
    t==1?t+=x:t-=x;
    cout<<t<<' ';
  }
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details