简单又实用,看不懂请打死我 摘要:解题思路:用排序函数sort对输入的数据进行排序,使用降重函数unique对输入的数据进行降重并输出注意事项:使用sort和unique前添加头文件#include<algorithm>参考代码:#i…… 题解列表 2023年04月24日 0 点赞 0 评论 308 浏览 评分:9.9
编写题解 1130: C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;const in…… 题解列表 2023年04月23日 0 点赞 0 评论 265 浏览 评分:0.0
个人觉得这解法是非常简单解法 摘要:解题思路我觉得代码能看懂,x=a/b,想要求x的最小,则x=a/(b+1)+1即可,x=a/b已经是最大的了。注意事项:参考代码:#include<iostream>#include<algorith…… 题解列表 2023年04月23日 0 点赞 5 评论 2872 浏览 评分:9.9
学会结构体数组,看不懂就评论 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{ int num; int a,b,c; int su…… 题解列表 2023年04月23日 0 点赞 0 评论 297 浏览 评分:6.0
蓝桥杯C组-填充 摘要:解题思路:大劣,考试的时候没想到╥﹏╥参考代码:#include <iostream> // 引入输入输出流库 #include <cstring> // 引入字符串库 using namesp…… 题解列表 2023年04月23日 0 点赞 1 评论 958 浏览 评分:9.3
2773: 计算线段长度(制作不易,给个好评) 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double xa,ya,xb,yb; cin>>xa>>ya>>…… 题解列表 2023年04月22日 0 点赞 0 评论 563 浏览 评分:9.9
2775: 等差数列末项计算 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin >>a>>b>>c; cout<…… 题解列表 2023年04月22日 0 点赞 0 评论 364 浏览 评分:9.9
[编程入门]宏定义练习之三角形面积题解 摘要:解题思路:三角形面积=SQRT(S*(S-a)*(S-b)*(S-c)) 其中S=(a+b+c)/2,,a、b、c为三角形的三边。先求出S=(a+b+c)/2,再求SQRT(S*(S-a)*(S-b)…… 题解列表 2023年04月22日 0 点赞 0 评论 274 浏览 评分:0.0
1306: 老管家的忠诚2 摘要:```cpp #include using namespace std; int num[100001]; struct node { int l,r,w; }tree[4000…… 题解列表 2023年04月22日 0 点赞 0 评论 430 浏览 评分:9.9
1305: 老管家的忠诚 摘要:```cpp #include using namespace std; int divide(int *a,int *b,int low,int high) { int mid=a…… 题解列表 2023年04月22日 0 点赞 0 评论 426 浏览 评分:9.9