当前位置: > 一道ACM水题,还可以怎么简化呢?...
题目
一道ACM水题,还可以怎么简化呢?
Description
A prime number is a natural number which has exactly two distinct natural number divisors:1 and itself.The first prime number is 2.Can you write a program that computes the nth prime number,given a number n

提问时间:2021-04-09

答案
传统法优化后.int prime(int n){ int i; double t; if(n%2!=0 || n==2) { if(n==2) return 1; else { t=sqrt(n); //#include for(i=3;it) ...
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.