#include
using std::cin;
using std::cout;
using std::endl;
void result(double N, double *otputM, double *otputH, double M = 2, double H = 12, double P = 50, double B = 2)
{
double one = M / 100 * 1;
P = one * P;
M = M + (P * N);
H = H + (B * N);
*otputM = M;
*otputH = H;
}
int main() {
setlocale(LC_ALL, "Russian");//русский
double M; //население (тысяч. чел)
double H; //длина дорог (км)
double P; //процент увеличения населения (%)
double B; //увеличение дорог (км)
double N; //кол-во лет
double otputM = 0;//ответ людей
double otputH = 0;//ответ дорог
int input;
cout
cin >> input;
if(input == 2)
{
cout
cin >> N;
result(N, &otputM, &otputH);
cout
cout
}else if(input == 1)
{
cout
cin >> N;
cout
cin >> M;
cout
cin >> H;
cout
cin >> P;
cout
cin >> B;
result(N, &otputM, &otputH, M, H, P, B);
cout
cout
}else
{
cout
}
return 0;
}