提交记录 16515


用户 题目 状态 得分 用时 内存 语言 代码长度
HandwerSTD 1001. 测测你的排序 Compile Error 0 0 ns 0 KB C++ 787 B
提交时间 评测时间
2021-09-24 20:21:06 2021-09-24 20:21:07
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cstring>
#include<set>
#include<ctime>
#include<iostream>
#include <vector>

using namespace std;

int s;

inline int rando() {
    static int seed = s;
    return seed = (int)(seed*48271ll%2147483647);
}

inline long long int randoll() {
    return 1ll * rando() * rando() % 1926081719260817;
}

std::string ss[2000000 + 10];

int main() {
    // freopen("gendata.in", "w", stdout);
    srand ( time ( NULL ) ) ; s = rand();
    
    for (int i = 1; i <= 1000000; ++i) {
        for (int j = 1; j <= 100; ++j) {
            ss[i].push_back(rando() % 26 + 'a');
        }
    }

    int t0 = clock();

    std::sort(ss + 1, ss + 1 + 1000000);

    cout << (double) (clock() - t0) / CLOCKS_PER_SEC << endl;

    return 0;
}

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-19 01:54:34 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠