• 判断程序运行时间


    //get time
    #include <iostream>
    #include <ctime>
    
    using namespace std;
    
    int main(){
    	clock_t start = clock();
    	
    	//This is your code
    	
    	clock_t ends = clock();
    	cout << "Running Time : " << (double)(ends - start)/ CLOCKS_PER_SEC << endl;
    } 
    
  • 相关阅读:
    HDU 1429
    HDU 1622
    HDU 3335
    HDU 4160
    HDU 1350
    HDU 5086
    HDU 1300
    HDU 3047
    HDU 3038
    HDU 5100
  • 原文地址:https://www.cnblogs.com/tyner/p/11738085.html
Copyright © 2020-2023  润新知