AlgoLab4-P2
Never
#include <bits/stdc++.h> using namespace std; int main () { int v,ntc,a[1000],i,tc=0,tt[100],j=0,d,k=0; cin>>v>>ntc; for(i=0;i<ntc;i++) { cin>>a[i]; } for(i=ntc-1;i>=0;i--) { if(v>=a[i]) { d=(v/a[i]); tc=tc+d; v=v%a[i]; d+=k; for(j=k;j<d;j++) { tt[j]=a[i]; } k=d; } } if(v==0) { cout<<"Yes"<<endl; for(i=k-1;i>=0;i--){ cout<<tt[i]<<" "; } } else { cout<<"No"<<endl; } return 0; }
Raw Text
-
4L/ The Incredible Legs Of Louisa Lanewood Desire Your Admiration!
20 min ago
-
awsdf vhbh joijkj
24 min ago
-
sdfnb nasdfbnsd
46 min ago
-
Caring Stepmom Sophia Leone says, "I Just Want to Make Sure You Get ALL the Cum Out"-S3:E9
49 min ago
-
Free Monopoly Go dice links April 2024 Today
1 hour ago
-
GET V-BUCKS
1 hour ago
-
POV Pretended to be her boyfriend and she sucked me
1 hour ago
-
sdfsdfsdfdsfsdf
1 hour ago
-
dsdf dfsd dsdf s fdsd dd dsdfs dsdsffsd
1 hour ago
-
LOAN4K. Fuck to Flee
1 hour ago