摘要:
PTA 7-50 近似求PI 网友代码: 1 include <stdio.h> 2 3 int main(){ 4 double eps, sum=1, i, temp=1; 5 scanf("%le", &eps); 6 for(i=1; temp>eps; i++){ 7 temp = tem 阅读全文
posted @ 2019-04-24 22:18
cxc1357
阅读(768)
评论(0)
推荐(0)
摘要:
PTA 乘2后不变 1 #include<stdio.h> 2 #include<string.h> 3 #define N 21 4 5 int main(){ 6 char original[N]; 7 int doubledNum[N],i,digitsCount[10]; 8 int car 阅读全文
posted @ 2019-04-24 21:17
cxc1357
阅读(212)
评论(0)
推荐(0)
摘要:
动态数组的实现 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int main(){ 5 int i,n,*a; 6 scanf("%d",&n); 7 a=(int*)calloc(n,sizeof(int)); 8 for(i=0;i<n;i++){ 阅读全文
posted @ 2019-04-24 20:25
cxc1357
阅读(308)
评论(0)
推荐(0)

浙公网安备 33010602011771号