【搜索党】卡时技巧

#include<ctime>
void dfs(){
    if(1000*(clock()-t)>=980*CLOCKS_PER_SECOND){ //clock()-t<980

        output solution;
        exit(0);
    }
}
int main(){
    t=clock();
    dfs();
}

posted @ 2017-10-01 15:42  大本营  阅读(532)  评论(0)    收藏  举报