Входные данные одни на все
#include <iostream>
#include <cmath>
using namespace std;
int main() {
float x, y;
cin >> x >> y;
cout << "a) " << (abs(x) - abs(y)) / (1 + abs(x*y)) << endl;
cout << "b) " << sqrt(pow(x, 2) + pow(y, 2)) / (x*y) << endl;
cout << "c)" << (x - y) / (abs(x) - abs(y)) << endl;
cout << "d)" << sqrt(abs(x) + abs(y)) / sqrt(pow(x, 2) + 1) << endl;
return 0;
}
Правильный ответ Б потому как 500кбайт это 4096000 бит, и если поделить выйедт 32 сек
Program n;
uses crt;
var i:integer;
begin
for i:=-10 to 10 do writeln(i:4, abs(i):4);
<span>end. </span>
using System;
using System.Linq;
namespace Prog
{
public class Program
{
public static void Main(string[] args)
{
Random rnd = new Random();
int len = rnd.Next(5,30);
int[] A = new int[len];
for (int i = 0; i < len; i++)
A[i] = rnd.Next(-50, 50);
Console.WriteLine("{0}", string.Join(" ", A));
var B = Array.FindAll(A, i => i >= A[Array.IndexOf(A, A.Max())-1]);
foreach (int i in B)
Console.Write(i+" ");
}
}
}
1125*8= 9000 - всего символов
9000/5/25=72 символа в строке