04 2021 档案

摘要:1.递归函数 代码如下: 1 #include <stdio.h> 2 long long fun(int n); 3 int main() { 4 int n; 5 long long f; 6 while(scanf("%d",&n)!=EOF){ 7 f=fun(n); 8 printf("n 阅读全文
posted @ 2021-04-28 22:36 namelessbird 阅读(51) 评论(2) 推荐(0) 编辑
摘要:1.随机数生成 代码如下: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 int main() { 6 int x,n; 7 srand(time(0)); 8 for (n = 1; n 阅读全文
posted @ 2021-04-10 18:17 namelessbird 阅读(122) 评论(2) 推荐(0) 编辑