![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PTA
Chantal_cian
这个作者很懒,什么都没留下…
展开
-
6-11 求自定类型元素序列的中位数 (25分)
**6-11 求自定类型元素序列的中位数 (25分)**编译器:ElementType Median( ElementType A[], int N ){ int i,j,k; float temp; for(i=0;i<N-1;i++) { k=i; for(...原创 2019-12-15 15:15:15 · 159 阅读 · 0 评论 -
6-10 阶乘计算升级版 (20分)
**6-10 阶乘计算升级版 (20分)**编译器:void Print_Factorial ( const int N ){ if(N<0) printf("Invalid input"); else if(N==0) printf("1"); else { long long int ...原创 2019-12-05 12:17:28 · 266 阅读 · 0 评论 -
6-7 统计某类完全平方数 (20分)
**6-7 统计某类完全平方数 (20分)**编译器:int IsTheNumber ( const int N ){ int x=sqrt(N),t=0; if(x*x==N) { int i,j,m=N,a[81]; for(i=0;N/pow(10,i)!=0;i++) ...原创 2019-12-05 09:46:05 · 289 阅读 · 2 评论 -
6-2 多项式求值 (15 分)
编译器:double f( int n, double a[], double x ){ int i; double sum=0,t=1; for(i=0;i<=n;i++) { t=t*x; sum=sum+a[i]*t; } return ...原创 2019-12-04 23:38:35 · 309 阅读 · 1 评论