Zadatak11.

#include <iostream>

using namespace std;

int main()
{
int l,h,s,stabla;
cin>>l>>h>>s;
stabla= 2 * (l / s + h / s);
cout<<stabla<<endl;
return 0;
}

Advertisements