题解列表

筛选

题解 2821: 开关灯

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[6000];int main() { int n,m; cin>>n>>……

题解 2909: 直方图

摘要: #include using namespace std; int a,b=0,c,d[20000],e[200000]; int main() { ……

一行代码解决题

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    char c;    cin>>c;    cout<<" "……

题解 2782: 整数大小比较

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    cin>>a>>b;    if(a>b……

收费的题解

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

感谢支持,谢谢你们的支持

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

题解 2773: 计算线段长度

摘要:解题思路:无注意事项:不要抄袭,会遭报应的。参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie……

[递归]母牛的故事(c++)

摘要:解题思路:题目告诉递归,那就找规律:1,2,3,4,6,9明显看出f(n)=f(n-1)+f(n-3);(n>4)注意事项:找对规律对递归很重要。参考代码:#include<bits/stdc++.h……

校门外的树(c++)

摘要:解题思路:树是连续的可以用数组来存储,根据区间来遍历,更改数组状态。注意事项:用来存储树的数组需要比极限略微大一点的空间,否则会有段错误。参考代码:#include<bits/stdc++.h> #……

2919: 奖学金

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; struct u { int xh;     int yv;  ……