题解列表

筛选

@更向天涯 小李子不行啊!!!

摘要:解题思路:注意事项:cin、cout一定要改成scanf和printf不然会超时!!!!参考代码:#include<bits/stdc++.h>using namespace std;int a[10……

1045: [编程入门]自定义函数之整数处理

摘要:```cpp #include using namespace std; /* 题目描述 输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。 写三个函数; ①输入……

666666666666666666

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;double x,xn=1,sum=1;int main(){ scan……

蓝桥杯2018年第九届真题-次数差-C++

摘要:解题思路:    双指针法注意事项:    注意我在字符串末尾加了个‘A’,可以减少判断逻辑参考代码:#include<iostream> #include<algorithm> using na……

两种方法,简单易懂!!!!

摘要:解题思路:注意事项:数组可以不开那么大。参考代码:#include<bits/stdc++.h>using namespace std;//int a,b,c;int n,a[101][101],s,……

高斯求和 (c++代码)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ cin>>n; int s=(1+n)*n/2;……

楼上题解太逊了

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,a,b,tail,head,k[300],q[300][3],p[300……