二分法求函数的零点xxxx 摘要:解题思路:利用二分法不断缩小含根区间,根据函数值确定新的区间范围,直到满足精度要求,最后四舍五入得到结果。注意事项:选择合适的循环终止条件,确保计算准确性。参考代码:#include #include…… 题解列表 2024年10月16日 0 点赞 0 评论 374 浏览 评分:9.9
和和为为给给定定数数 摘要:解题思路:读取输入后排序,用双指针从两端向中间找和为目标值的数对,根据当前和调整指针参考代码:#include <iostream> #include <vector> #include <alg…… 题解列表 2024年10月16日 0 点赞 0 评论 331 浏览 评分:9.9
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码#include<iostream>#include<string>using namespace std;int main(){ string s; cin>…… 题解列表 2024年10月16日 0 点赞 0 评论 265 浏览 评分:0.0
题解 2515: 转圈游戏 摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef long long LL;LL quick(LL a,LL b,LL m){ if(b==0) r…… 题解列表 2024年10月16日 0 点赞 0 评论 164 浏览 评分:0.0
判断整除(回溯) 摘要:```java import java.util.Scanner; public class Main { static int n, k, plan = 0; stati…… 题解列表 2024年10月16日 0 点赞 0 评论 192 浏览 评分:9.9
容易理解如何解决Sn求和问题 摘要:解题思路:从第二项开始后一项为前一项的10倍后加上前一项注意事项:需要包含#include<math.h>函数参考代码:#include<stdio.h>#include<math.h>int mai…… 题解列表 2024年10月16日 0 点赞 0 评论 188 浏览 评分:9.9
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct student { int num; // 学号 char name[10]; //…… 题解列表 2024年10月17日 1 点赞 0 评论 274 浏览 评分:8.0
旧物有情 # 奥运奖牌计数 一看就懂 摘要:``` #include #include using namespace std; int n,jin,yin,tong; int main(){ cin >> n; …… 题解列表 2024年10月17日 0 点赞 0 评论 116 浏览 评分:0.0
旧物有情 # 字符串正反连接 超简单思路 摘要:``` #include #include #include using namespace std; int n,jin,yin,tong; int main(){ ch…… 题解列表 2024年10月17日 0 点赞 0 评论 205 浏览 评分:0.0
旧物有情 # 回文判断 两种方法 摘要:[TOC] # 方法一:reverse翻转 ``` #include #include #include #include #include using namespace s…… 题解列表 2024年10月17日 0 点赞 0 评论 204 浏览 评分:0.0