#include <iostream>
#include <vector>
#include <algorithm>
#include <ctime>
#include <cstdlib>
#include <stack>
#include <string>
#include <cstring>

using namespace std;

int algorithm_1(int, int, int*, int*, int*);
int algorithm_2(int, int, int*, int*, int*);

int algorithm_1_analy(int, int, int*, int*, int*, int&, int&);
int algorithm_2_analy(int, int, int*, int*, int*, int&, int&);

