题解列表

筛选

二分法求函数的零点xxxx

摘要:解题思路:利用二分法不断缩小含根区间,根据函数值确定新的区间范围,直到满足精度要求,最后四舍五入得到结果。注意事项:选择合适的循环终止条件,确保计算准确性。参考代码:#include #include……

和和为为给给定定数数

摘要:解题思路:读取输入后排序,用双指针从两端向中间找和为目标值的数对,根据当前和调整指针参考代码:#include <iostream> #include <vector> #include <alg……

小白,看看就行,不动脑袋

摘要:解题思路:注意事项:参考代码#include<iostream>#include<string>using namespace std;int main(){    string s;    cin>……

题解 2515: 转圈游戏

摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef long long LL;LL quick(LL a,LL b,LL m){    if(b==0)        r……

判断整除(回溯)

摘要:```java import java.util.Scanner; public class Main { static int n, k, plan = 0; stati……

容易理解如何解决Sn求和问题

摘要:解题思路:从第二项开始后一项为前一项的10倍后加上前一项注意事项:需要包含#include<math.h>函数参考代码:#include<stdio.h>#include<math.h>int mai……

[编程入门]结构体之成绩统计2

摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct student {    int num;          // 学号    char name[10];    //……