zoukankan      html  css  js  c++  java
  • 果然逆天,处理一亿条int32数据排序,需要耗时32秒

    [root@localhost contest]# ./test
    hehe:10
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:2  Used Time:0.000190
    hehe:100
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:4  Used Time:0.000053
    hehe:1000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:6  Used Time:0.000569
    hehe:10000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:8  Used Time:0.003498
    hehe:100000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:10  Used Time:0.044151
    hehe:1000000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:12  Used Time:0.236078
    hehe:10000000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:14  Used Time:2.799460
    hehe:100000000
    ----------------------------------------before quick sort--------------
    ----------------------------------------after quick sort-----------------
    ok
    count:16  Used Time:32.029633
    /***********************************************

    看书看原版,原汁原味。

    不会英文?没关系,硬着头皮看下去慢慢熟练,才会有真正收获。

    没有原书,也要网上找PDF来看。

    网上的原版资料多了去了,下载东西也到原始下载点去看看。

    你会知其所以然,呵呵。

    ***********************************************/

  • 相关阅读:
    BZOJ3566: [SHOI2014]概率充电器
    BZOJ5018: [Snoi2017]英雄联盟
    BZOJ4627: [BeiJing2016]回转寿司
    BZOJ4719: [Noip2016]天天爱跑步
    BZOJ1511: [POI2006]OKR-Periods of Words
    BZOJ4721: [Noip2016]蚯蚓
    BZOJ1922: [Sdoi2010]大陆争霸
    BZOJ2525: [Poi2011]Dynamite
    单选按钮 / 复选框 样式自定义
    HDU 产生冠军 2094
  • 原文地址:https://www.cnblogs.com/dpblue/p/3921846.html
Copyright © 2011-2022 走看看