标签:ges put 技术 else mem turn es2017 ima ==
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
1 #include <stdio.h> 2 int main() 3 { 4 double e=1,flag=1; 5 int i; 6 printf("n e\n"); 7 printf("- -----------\n"); 8 printf("0 1\n"); 9 for(i=1;i<=9;i++) 10 { 11 flag*=i; 12 e+=1.0/flag; 13 if(i==1) printf("1 %.0lf\n",e); 14 else if(i==2) printf("2 %.1lf\n",e); 15 else printf("%d %.9lf\n",i,e); 16 } 17 return 0; 18 }
标签:ges put 技术 else mem turn es2017 ima ==
原文地址:http://www.cnblogs.com/BOW1203/p/7811292.html