All pastes #829141 Raw Edit

Something

public text v1 · immutable
#829141 ·published 2007-12-22 23:07 UTC
rendered paste body
#include <cstdlib>
#include <time.h>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    
    vector<int> v;
    clock_t czas = clock(); 
     for (int i=0; i<1000000; i++)
     v.insert(v.begin(), liczba);
     printf("Czas %f\n", (float)(clock() - czas) / CLOCKS_PER_SEC);
     
     
     list<int> l;
     clock_t czas = clock(); 
     for (int i=0; i<1000000; i++)
     l.insert(l.begin(), liczba);
     printf("Czas %f\n", (float)(clock() - czas) / CLOCKS_PER_SEC);
    system("PAUSE");
    return EXIT_SUCCESS;
}