会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
首心
博客园
首页
新随笔
联系
订阅
管理
2021年4月23日
编写一个程序,求2~n间的素数,n由键盘输入,循环变量分别 从2到n、2到(int)sqrt(n),分别测出两个循环的所用时间。
摘要: #include<stdio.h> #include<math.h> #include<sys/time.h> #include<unistd.h> int main() { struct timeval tv1,tv2; struct timezone tz; int t,i,j,n; int c
阅读全文
posted @ 2021-04-23 17:47 首心
阅读(703)
评论(0)
推荐(0)
编辑
公告