
acm
omigia007
这个作者很懒,什么都没留下…
展开
-
hdu1001 Sum Problem
Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. InputThe input will consist of a series of integers n, one integer per line Output转载 2014-09-07 21:40:44 · 593 阅读 · 0 评论 -
PAT (Basic Level) Practise (中文)1026. 程序运行时间
要获得一个C语言程序的运行时间,常用的方法是调用头文件time.h,其中提供了clock()函数,可以捕捉从程序开始运行到clock()被调用时所耗费的时间。这个时间单位是clock tick,即“时钟打点”。同时还有一个常数CLK_TCK,给出了机器时钟每秒所走的时钟打点数。于是为了获得一个函数f的运行时间,我们只要在调用f之前先调用clock(),获得一个时钟打点数C1;在f执行完成后再调用c转载 2014-09-07 23:27:28 · 763 阅读 · 0 评论