#include <iostream>
#include <chrono>

using namespace std;

double calc1(const int* a, const int* b) {
	
	auto start = chrono::system_clock::now();
	
	int* c = new int[10000000];
	
	for (int i = 0; i < 10000000; i++)
		c[i] = a[i] + b[i];
		
	delete[] c;

	return chrono::duration<double>( chrono::system_clock::now() -start).count();
}

double calc2(const int*a, const int*b) {
	
	auto start = chrono::system_clock::now();
	
	int* c = new int[10000000];

	delete[] c;
	
	return chrono::duration<double>(chrono::system_clock::now() - start).count();

}

int main() {
	// your code goes here
	int* a = new int[10000000];
	int* b = new int[10000000];
	
	std::cout << calc1(a, b) << '\n' << calc2(a, b);
	
	delete[] a;
	delete[] b;
}