Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
#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();
}
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
⬜⬜🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧⬜⬜
⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧🟧🟧⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬛⬛⬜⬜⬜
🟦🟦🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟦⬛⬛⬛🟦🟦🟦🟦🟦🟦🟦
🟦🟦🟦🟦🟧🟧🟧🟦🟦🟦🟦🟦🟦🟦🟦
🟥🟥🟥⬛⬛⬛🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥🟧🟧🟧🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥
🟥🟥🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟧🟥🟥
🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥🟥