计算分数加减表达式的值 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc =…… 题解列表 2023年04月23日 0 点赞 0 评论 385 浏览 评分:0.0
编写题解 2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:该代码只适用于输入的 n 是两个不同的质数的乘积的情况,如果输入的 n 是一个质数,则输出结果不正确。参考代码:import java.util.Scanner;public cl…… 题解列表 2023年04月23日 0 点赞 0 评论 308 浏览 评分:0.0
合并两个单链表 摘要:```c 解题思路: #include #include typedef struct stu{ int id; //学号 int score; //成…… 题解列表 2023年04月23日 0 点赞 0 评论 379 浏览 评分: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 评论 354 浏览 评分:9.9
删除重复元素(简单暴力循环) 摘要:```c #include void DelPack(char*); int main() { char str[100] = { 0 }; gets(str); DelPac…… 题解列表 2023年04月23日 0 点赞 0 评论 423 浏览 评分:9.9
编写题解 1130: C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;const in…… 题解列表 2023年04月23日 0 点赞 0 评论 277 浏览 评分:0.0
同行列对角线的格子 摘要:解题思路:从左上到右下(先找到最左下的元素,利用while循环,以此往下输出),左下到右上同理。。。利用tx、ty、rx、ry保存x、y的值,从而找到左下或右上的第一个元素。注意事项:参考代码:#in…… 题解列表 2023年04月23日 0 点赞 0 评论 464 浏览 评分:0.0
个人觉得这解法是非常简单解法 摘要:解题思路我觉得代码能看懂,x=a/b,想要求x的最小,则x=a/(b+1)+1即可,x=a/b已经是最大的了。注意事项:参考代码:#include<iostream>#include<algorith…… 题解列表 2023年04月23日 0 点赞 5 评论 2882 浏览 评分:9.9
阶乘差(阶乘一般都很大 直接上大范围类型) 摘要:```c #include unsigned long long int factorial(unsigned long long int n); int main() { un…… 题解列表 2023年04月23日 0 点赞 0 评论 371 浏览 评分:9.9