旧物有情 # 字符串正反连接 超简单思路 摘要:``` #include #include #include using namespace std; int n,jin,yin,tong; int main(){ ch…… 题解列表 2024年10月17日 0 点赞 0 评论 217 浏览 评分:0.0
旧物有情 # 奥运奖牌计数 一看就懂 摘要:``` #include #include using namespace std; int n,jin,yin,tong; int main(){ cin >> n; …… 题解列表 2024年10月17日 0 点赞 0 评论 126 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct student { int num; // 学号 char name[10]; //…… 题解列表 2024年10月17日 1 点赞 0 评论 285 浏览 评分:8.0
容易理解如何解决Sn求和问题 摘要:解题思路:从第二项开始后一项为前一项的10倍后加上前一项注意事项:需要包含#include<math.h>函数参考代码:#include<stdio.h>#include<math.h>int mai…… 题解列表 2024年10月16日 0 点赞 0 评论 200 浏览 评分:9.9
判断整除(回溯) 摘要:```java import java.util.Scanner; public class Main { static int n, k, plan = 0; stati…… 题解列表 2024年10月16日 0 点赞 0 评论 205 浏览 评分:9.9
题解 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 评论 178 浏览 评分:0.0
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码#include<iostream>#include<string>using namespace std;int main(){ string s; cin>…… 题解列表 2024年10月16日 0 点赞 0 评论 288 浏览 评分:0.0
和和为为给给定定数数 摘要:解题思路:读取输入后排序,用双指针从两端向中间找和为目标值的数对,根据当前和调整指针参考代码:#include <iostream> #include <vector> #include <alg…… 题解列表 2024年10月16日 0 点赞 0 评论 347 浏览 评分:9.9
二分法求函数的零点xxxx 摘要:解题思路:利用二分法不断缩小含根区间,根据函数值确定新的区间范围,直到满足精度要求,最后四舍五入得到结果。注意事项:选择合适的循环终止条件,确保计算准确性。参考代码:#include #include…… 题解列表 2024年10月16日 0 点赞 0 评论 429 浏览 评分:9.9
递归倒置字符组xxxxx 摘要:解题思路:定义递归函数,以首尾字符交换的方式逐步调整字符串,通过不断缩小处理范围实现倒置。在递归过程中,每次交换字符后打印当前字符状态,当范围缩小到只剩一个字符或更少时停止递归。注意事项:1.注意递归…… 题解列表 2024年10月16日 0 点赞 0 评论 366 浏览 评分:9.9