【无标题】
#include #include#include#include#include#include#includeusing namespace std;int L[1000000];int N = 88874;int main(){ vectorv; listl; sets; for (int i = 0; i < 1000000; i++) { L[i] = rand(); } for (int i = 0; i < 1000000; i++) { v.push_back(L[i]); l.push_back(L[i]); s.insert(L[i]); } clock_t start_1 = clock();//计时开始 vector::iterator it_1 = v.begin(); for (; it_1 != v.end(); it_1++) { if (*it_1 == N) { break;
【无标题】最先出现在Python成神之路。
共有 0 条评论