摘要:
#define LOCAL#include "stdafx.h"#include #include "math.h"//#include #define INF 100000int main(){#ifdef LOCAL freopen("data.in","r",stdin); freopen("data.out","w",stdout);#endif int x,n=0,min= INF,max= -INF, s = 0; while(scanf("%d&quo 阅读全文
posted @ 2013-11-09 16:17
混沌奇迹
阅读(178)
评论(0)
推荐(0)
摘要:
#includeint main(){// ... ..// ....printf("Time used = %.2lf\n",(double)clock()/CLOCKS_PER_SEC);return 0;}计时函数clock(),该函数返回程序目前为止运行的时间。这样,在程序结束之前调用它,便可获得整个程序运行的时间。这个时间除以创术CLOCKS_PER_SEC之后得到的值以秒为单位。可以使用time.h和clock() 函数获得程序运行时间。常熟CLOCKS_PER_SEC和操作系统相关,请不要直接使用clock()的返回值,而应总是除以CLOCKS_PER_SEC 阅读全文
posted @ 2013-11-09 15:48
混沌奇迹
阅读(626)
评论(0)
推荐(1)
浙公网安备 33010602011771号