Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
cpp
main.cpp 0.3 kB 4 20-Aug-2015 17:35 metotra Инженер, регионален 2013, напредна група

This page (revision-6) was last changed on 08-Nov-2015 12:45 by Penkov

This page was created on 20-Aug-2015 17:35 by mariomako

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 41 changed 16 lines
int n, m, moneti=0, kusur;
cin >> n >> m;
kusur=m-n;
moneti+=kusur/5; //Остатокот е занемарен
kusur-=(kusur/5)*5;
moneti+=c/2;
kusur-=(kusur/2)*2;
moneti+=kusur;
cout << moneti << endl;
int x,y,k,petka=0,dvojka=0,kec=0;
cin>>x>>y;
k=y-x;
while(k>0){
while(k>=5)
{
k=k-5;
petka++;
}
while(k>=2)
{
k=k-2;
dvojka++;
}
while(k>=1)
{
k=k-1;
kec++;
}
}
cout<<petka+dvojka+kec;
Version Date Modified Size Author Changes ... Change note
6 08-Nov-2015 12:45 2.84 kB Penkov to previous
5 08-Nov-2015 12:45 2.811 kB Lord_of_Life to previous | to last
4 20-Aug-2015 17:35 2.356 kB v10 to previous | to last
3 20-Aug-2015 17:35 2.351 kB v10 to previous | to last
2 20-Aug-2015 17:35 3.237 kB mariomako to previous | to last
1 20-Aug-2015 17:35 0.948 kB mariomako to last
« This page (revision-6) was last changed on 08-Nov-2015 12:45 by Penkov