General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
193006123 Practice:
Archaeopteryx
1015D - 40 C++20 (GCC 11-64) Accepted 46 ms 0 KB 2023-02-10 05:37:14 2023-02-10 05:37:14
→ Source
#include<bits/stdc++.h>
#define int long long
using namespace std;
int n,k,s,t=1,x;
signed main(){
cin>>n>>k>>s;
if(s<k||s>(n-1)*k){
cout<<"NO";
return 0;
}
cout<<"YES\n";
while(k--){
x=min(n-1,s-k);
s-=x;
if(t==1) t+=x;
else t-=x;
cout<<t<<' ';
}
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details