自由下落的距离计算 摘要: ```c #include #define N 100 int main() { float m,n; scanf("%f %f",&m,&n); float…… 题解列表 2023年04月04日 0 点赞 0 评论 447 浏览 评分:0.0
動態內存申請 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>//malloc函數的頭文件void mycpy(const char *sou,char *goa…… 题解列表 2023年04月03日 0 点赞 0 评论 494 浏览 评分:0.0
题解 1095: The 3n + 1 problem 摘要:解题思路:注意事项:还得先比较输入的两个数的大小!!!参考代码#include<stdio.h> int main() { int a,b,m,n,j,temp; int su…… 题解列表 2023年04月03日 0 点赞 0 评论 435 浏览 评分:0.0
蓝桥杯算法提高VIP-邮票面值设计 #蓝桥杯算法提高VIP-邮票面值设计```cpp#include#include#includeusingnamespacestd;intans[15]={0};inttemp[15]={0};intn,k,max_res=0;intdp[3000];intget_continuity(){for(i 题解列表 2023年04月03日 0 点赞 0 评论 622 浏览 评分:0.0
题解 1094: 字符串的输入输出处理------自用(复杂了,有时间补解析) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char a[100][1000]; int…… 题解列表 2023年04月03日 0 点赞 0 评论 544 浏览 评分:0.0
有趣的跳跃 解题思路:拆分为几个小的模块进行,但感觉很麻烦。1.建立数组a[n],用来存放序列中的每个数字2.用数组c[n],用来存放数组a中相邻两个数差值的绝对值3.对c[n]进行冒泡排序4.判断c[n]数组中第n个数是不是等于n5.如果全部都对应相等就输出Jolly, 题解列表 2023年04月02日 0 点赞 2 评论 1022 浏览 评分:9.9
1157:亲和数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int f(int t){ int sum=1,k; for(…… 题解列表 2023年04月02日 0 点赞 0 评论 515 浏览 评分:0.0
题解 1575: 递归倒置字符数组----自用 摘要:解题思路:非递归方法注意事项:参考代码:#include<stdio.h> int main() { int n; char temp; char a[100]; …… 题解列表 2023年04月02日 0 点赞 0 评论 1085 浏览 评分:8.4
题解 1004: [递归]母牛的故事-----自用 摘要:解题思路:注意事项:参考代码:/*递归,会超时 #include<stdio.h> int fun(int n) { if(n<=5) return n; …… 题解列表 2023年04月02日 0 点赞 0 评论 561 浏览 评分:0.0
阶乘和数数数 1:先判断哪些正整数符合要求,把符合的转成字符串放在数组里保存起来2:对字符串进行排序```c#include#include#include#defineN25intf(intn){if(n==0||n==1)return1;elsereturnn*f(n-1);}intis(intn, 题解列表 2023年04月02日 0 点赞 0 评论 784 浏览 评分:0.0