От 50 файлов до 1гигабайта
Вариант на C++:
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
int main()
{
int N, mult(1);
std::cin >> N;
std::vector<int> arr(N);
for(auto i = arr.begin(); i != arr.end(); i++)
{
std::cin >> *i;
if(std::distance(arr.begin(), i) % 2 == 0)
mult *= *i;
}
std::copy(arr.cbegin(), arr.cend(), std::ostream_iterator<int>(std::cout, " "));
std::cout << std::endl << mult << std::endl;
return 0;
}
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Введите число: \nА = ");
int x, y = sc.nextInt();
sc.close();
x = y * y;
System.out.println("A^2 = " + x);
y *= x;
System.out.println("A^3 = " + y);
x *= y;
System.out.println("A^5 = " + x);
y = x * x;
System.out.println("A^10 = " + y);
y *= x;
System.out.println("A^15 = " + y);
}
}
K=16=2 в степени 4
V= M*N*a
V= 640*288*4=737280бит=92160 байт=90 кб
ответ 90 кб
1) 1 байт- 8 битов
2) 213 бит - 0,0266 кбайт
3) 1 мбайт - 1 х 10 < -2, 0,001 байт, 0,08 бита.
4) 1,536 кбайт, 1536 байт = 12.288 бит.