#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "RUSSIAN");
string str1;
int count=0;
cout << "Программа подсчета количества букв \"к\" строке" << endl;
str1 = "Строка";
for (int i = 0; i < str1.length(); i++)
if (str1[i] == 'к')
count++;
cout << "Буква встречается в строке " << count << " раз" << endl;
system("pause");
}
Вроде работает
var a, b, c, P: real;
begin
writeln ('vvedite storoni');
readln ( a, b, c);
P:= a + b + c;
if P > 20 then begin
writeln (' horosho');
end
else begin
writeln ('otlichno');
end;
end.
40 секунд - это 2/3 от 60 секунд
3мб × 2/3 = 2мб
Лягушка, всасывает ее через кожу , находясь лапками в воде