迭代法求平方根 自定义函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double a[100];double h(double a[],double n){ int i; a[0]=n/2.0…… 题解列表 2024年12月08日 1 点赞 0 评论 771 浏览 评分:0.0
金明的预算方案 摘要:解题思路:这段代码的详细解释1. Max 函数:这是一个用于比较两个长整型数并返回较大值的函数。2. main 函数:定义了多个长整型数组 w (物品重量)、 v (物品价值)、 z1 、 …… 题解列表 2024年12月08日 0 点赞 0 评论 134 浏览 评分:0.0
第k极值(C语言) 摘要:解题思路:1. cmp 函数: 这是一个用于比较两个整数大小的比较函数,用于 qsort 函数进行快速排序。它返回两个指针所指向的整数的差值,用于确定排序的顺序。2. f 函数:用于判断一…… 题解列表 2024年12月08日 0 点赞 0 评论 210 浏览 评分:0.0
1728: 字符串的查找删除 来看看吧 万一看懂了呢 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; void f(string x){ // 遍历字符串的每一个字符 …… 题解列表 2024年12月08日 1 点赞 0 评论 141 浏览 评分:0.0
: 二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double h(double x){ if(x<0) { return fa…… 题解列表 2024年12月08日 0 点赞 0 评论 505 浏览 评分:0.0
二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[51];int b[51];int main(){ a[0]=-100; for(int i=0; i<51; …… 题解列表 2024年12月08日 0 点赞 0 评论 461 浏览 评分:0.0
1739: 成绩排序 sort+结构体 包看懂 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体xs,包含三个成员变量:字符串x、整数y和整数z stru…… 题解列表 2024年12月08日 0 点赞 0 评论 241 浏览 评分:0.0
掌握反向迭代就行 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string input; …… 题解列表 2024年12月08日 0 点赞 0 评论 316 浏览 评分:0.0
1268: 第K极值 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; bool f(int x){ // 如果x小于等于1,则不是素数 …… 题解列表 2024年12月09日 1 点赞 0 评论 204 浏览 评分:0.0