73+(37-12)*15=73+ 25*15=73+375=448
Var
k, p, s: integer;
begin
readln(k, p, s);
k := k * (100 + p);
writeln((100 * s) div k);
end.
С++
#include <iostream>
using namespace std;
bool Election(int a,int b,int c)
{
int t=0,f=0;
if(a==true)
t++;
else
f++;
if(b==true)
t++;
else
f++;
if(c==true)
t++;
else
f++;
if(t>f)
return TRUE;
else
return FALSE;
}
void main()
{
bool x,y,z;
cin>>x,y,z;
cout<< Election(x,y,z) <<endl;
system("pause");
}
1.
z = 1 + 128/5 = 1 + 64 = 65.
i = 1.
x = 64.
2.
z = 65 + 64/2 = 65 + 32 = 97.
i = 2.
x = 32.
3.
z = 97 + 32/2 = 97 + 16 = 115.
i = 3.
x = 16.
4.
z = 115 + 16/2 = 115 + 8 = 123.
i = 4.
x = 4.
Вывод: 123.
Ответ: 123.