#include <stdio.h> #include <math.h> int main(){ int N; int i; long s; if (scanf("%d",&N)!=EOF){ for (i=0;i<=N;i++){ s = (int)pow(3,i); printf("pow(3,%d) = %ld\n",i,s); } }else{ printf("int N wrong"); } return 0; }
#include <stdio.h> #include <math.h> int main(){ int N; int i; long s; if (scanf("%d",&N)!=EOF){ for (i=0;i<=N;i++){ s = (int)pow(3,i); printf("pow(3,%d) = %ld\n",i,s); } }else{ printf("int N wrong"); } return 0; }
天 : 20052
小时 : 467878
分钟 : 28072655
秒 : 1684359300