04 2021 档案

摘要:#include <stdio.h> #include<math.h> long long fun(int n); int main(){ int n; long long f; while(scanf("%d",&n)!=EOF){ f=fun(n); printf("n=%d,f=%lld\n" 阅读全文
posted @ 2021-04-28 23:11 麋鹿不迷路 阅读(47) 评论(2) 推荐(0)
摘要://生成N个0~99之间的随机整数,并打印输出 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main(){ int x,n; srand(time(0)); for(n=1;n<=N;n++) { x = 阅读全文
posted @ 2021-04-14 22:18 麋鹿不迷路 阅读(61) 评论(2) 推荐(0)