Вторая.
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
double a[4][4];
int mass[4] = { 0 };
for(int i = 0; i < 4; i++)
{
for(int j = 0; j < 4; j++)
{
cin >> a[i][j];
}
}
cout << endl;
for(int i = 0; i < 4; i++)
{
for(int j = 0; j < 4; j++)
{
if(a[i][j] < 0.0)
{
mass[i]++;
}
}
}
for(int i = 0; i < 4; i++)
{
cout << mass[i] << ' ';
}
cout << endl;
return 0;
}
R1, R2, R3, S1, S2, S3: Integer;
begin
writeln('Введите размеры рации и чемодана');
readln(R1, R2, R3, S1, S2, S3);
if ((R1 < S1) and (R2 < S2) and (R3 < S3)) or
((R3 < S3) and (R2 < S1) and (R1 < S2)) or
((R1 < S1) and (R2 < S3) and (R3 < S3)) or
((R2 < S2) and (R1 < S3) and (R3 < S1)) or
((R2 < S1) and (R3 < S2) and (R1 < S3)) or
((R1 < S2) and (R3 < S1) and (R2 < S3)) then
WriteLn('ПОМЕЩАЕТСЯ')
else
WriteLn('НЕ ПОМЕЩАЕТСЯ');
end.