залупочес
 
 
No information given.
Currently Offline
kingo0o0o0o0 13 Sep @ 5:27am 
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
#include <stdio.h>
#include <math.h>
#include <conio.h>
#include <iostream>
#include <fstream>
using namespace std;
typedef float* mass;

float chislo(mass b, float* ma)
{
int mi = 1000, i;
*ma = -1000;
for (i = 0; i < 6; i++)
{
if (b < mi) mi = b ;
if (b > *ma) *ma = b ;
}
return mi;
}

void main()
{
FILE *uin, *uout;
float a[6], b[6], c[6], j[6], mi1, mi2, mi3, ma1, ma2, ma3;

fopen_s(&uin, "input.dat", "r");

for (int i = 0; i < 6; i++) {
fscanf_s(uin, "%f", &a );
}
for (int i = 0; i < 6; i++) {
fscanf_s(uin, "%f", &b );
}
for (int i = 0; i < 6; i++) {
fscanf_s(uin, "%f", &c );
}
fclose(uin);

for (int i = 0; i < 6; i++) j = b + c ;

mi1 = chislo(a, &ma1);
mi2 = chislo(c, &ma2);
mi3 = chislo(j, &ma3);

fopen_s(&uout, "output.dat", "w");
fprintf_s(uout,"min(Ai)/max(Ai) + max(Ci)/min(Ci) + max(B+C)i / min(B+C)i = %f", mi1 / ma1 + ma2 / mi2 + ma3 / mi3);
fclose(uout);

_getch();
}
залупочес 7 Mar @ 10:53am 
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
залупочес 7 Mar @ 10:53am 
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
залупочес 7 Mar @ 10:53am 
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
залупочес 7 Mar @ 10:53am 
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥