Documente Academic
Documente Profesional
Documente Cultură
#include<stdlib.h>
#include<ctime>
using namespace std;
#define m 1000000
int main(){
clock_t t_start, t_stop;
float seconds;
t_start = clock();
//cout << "v[" << i << "] = "; cin >> a[i];
{
c[i] = a[i];
}
b[j]++;
else b[i]++;
{
a[b[i]] = c[i];
}
t_stop = clock();
seconds = ((float)(t_stop - t_start)) / CLOCKS_PER_SEC;
cout << endl << "timp de executie:" << " " << seconds << "s" << endl;
return 0;
}