编写题解 2817: 级数求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int k,i=1;double s=0;cin>>k;whi…… 题解列表 2024年05月27日 1 点赞 0 评论 216 浏览 评分:8.0
电报加密C++ 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>#include <stdlib.h>using namespace std;int main()…… 题解列表 2024年06月12日 0 点赞 0 评论 325 浏览 评分:8.0
坑是真的多。。。。。给定N个整数组成的序列,每次交换当前第x个与第y个整数,要求输出最终的序列。 摘要:解题思路:读入数列和换行数,一直读取x,y,读取一次交换一次注意事项:小心,给的x, y不是数组的下标,需要做处理,其次注意越界的问题参考代码:#include<iostream> using na…… 题解列表 2024年06月20日 0 点赞 0 评论 235 浏览 评分:8.0
完数的判断c语言简单易懂(for循环+if条件语句) 摘要:解题思路:for循环+if条件语句注意事项:认真审题参考代码:#include<stdio.h>void fun(int n){ int i,s=0; for(i=1;i<n;i++){ …… 题解列表 2024年07月06日 0 点赞 4 评论 204 浏览 评分:8.0
1164数组的距离(分类讨论) 摘要:解题思路:注意此题已经说明了是从大到小了,求最小的绝对值无非就是 判断最大值小的 那个数组所处的位置在哪就可以求解了,不要想太复杂!!!注意事项:参考代码:#include<iostream>#inc…… 题解列表 2024年07月10日 1 点赞 0 评论 364 浏览 评分:8.0
最暴力的写法 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=0;i<=n;i…… 题解列表 2024年08月08日 0 点赞 0 评论 222 浏览 评分:8.0
蓝桥杯2024年第十五届省赛真题-封闭图形个数 摘要:解题思路:注意事项:参考代码:n = int(input().strip())l = list(map(int,input().strip().split()))l.sort()l0 = [1,2,3…… 题解列表 2024年08月11日 2 点赞 0 评论 1448 浏览 评分:8.0
3222: 蓝桥杯2024年第十五届省赛真题-回文数组 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(map(int,input().strip().split()))c = 0d = [l[n - i - 1] - l[…… 题解列表 2024年08月15日 0 点赞 0 评论 855 浏览 评分:8.0
计算三角形面积 摘要:#include<stdio.h>#include<math.h> //主要是用pow函数double changdu(double x1,double x2,double y1,double y2)…… 题解列表 2024年08月31日 0 点赞 0 评论 295 浏览 评分:8.0
dfs简单易懂--来自蒟蒻的题解 摘要:# 欢迎各位赏脸来看本蒟蒻的题解 ~~保姆级教程~~(不是) 一眼dfs 但是可能会遇到重复加的问题 导致答案错误 ##### 其实只要 思考一下dfs递归的本质 就会发现 只需要加一个 特判就可…… 题解列表 2024年09月12日 0 点赞 1 评论 648 浏览 评分:8.0