个人觉得这解法是非常简单解法 摘要:解题思路我觉得代码能看懂,x=a/b,想要求x的最小,则x=a/(b+1)+1即可,x=a/b已经是最大的了。注意事项:参考代码:#include<iostream>#include<algorith…… 题解列表 2023年04月23日 0 点赞 5 评论 2888 浏览 评分:9.9
同行列对角线的格子 摘要:解题思路:从左上到右下(先找到最左下的元素,利用while循环,以此往下输出),左下到右上同理。。。利用tx、ty、rx、ry保存x、y的值,从而找到左下或右上的第一个元素。注意事项:参考代码:#in…… 题解列表 2023年04月23日 0 点赞 0 评论 482 浏览 评分:0.0
编写题解 1130: C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;const in…… 题解列表 2023年04月23日 0 点赞 0 评论 309 浏览 评分:0.0
删除重复元素(简单暴力循环) 摘要:```c #include void DelPack(char*); int main() { char str[100] = { 0 }; gets(str); DelPac…… 题解列表 2023年04月23日 0 点赞 0 评论 459 浏览 评分:9.9
蓝桥杯算法提高VIP-求指数 摘要:```c #include int main() { static int n, m; scanf("%d%d", &n, &m); int i = 1; for (i = …… 题解列表 2023年04月23日 0 点赞 0 评论 376 浏览 评分:9.9
合并两个单链表 摘要:```c 解题思路: #include #include typedef struct stu{ int id; //学号 int score; //成…… 题解列表 2023年04月23日 0 点赞 0 评论 403 浏览 评分:9.9
编写题解 2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:该代码只适用于输入的 n 是两个不同的质数的乘积的情况,如果输入的 n 是一个质数,则输出结果不正确。参考代码:import java.util.Scanner;public cl…… 题解列表 2023年04月23日 0 点赞 0 评论 325 浏览 评分:0.0
计算分数加减表达式的值 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc =…… 题解列表 2023年04月23日 0 点赞 0 评论 410 浏览 评分:0.0
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc = …… 题解列表 2023年04月23日 0 点赞 0 评论 326 浏览 评分:0.0
java验证子串(indexOf方法) 摘要:解题思路:利用indexOf方法判断一个字符串是否是另一个的子串注意事项:参考代码:package ten;import java.util.Scanner;public class 验证子串 { …… 题解列表 2023年04月24日 0 点赞 0 评论 411 浏览 评分:9.9