General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
192812205 Practice:
OneChen
1015D - 40 C++17 (GCC 7-32) Accepted 46 ms 8 KB 2023-02-09 06:45:13 2023-02-09 06:45:13
→ 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