题解列表

筛选

题解1001,我的第一个程序

摘要:解题思路:使用cout或者printf两者之一皆可注意事项:换行符是 \n 不要漏了格式不要错了参考代码:代码(一)#include<iostream>using namespace std;int ……

找规律罢了

摘要:解题思路:找规律~~注意事项:参考代码:#includeusing namespace std;int main() { int a; cin >> a; int n = 1; int s[a][a]……

简单易懂的c++代码

摘要:解题思路:注意到图案上下对称,左右对称,我们可以求出x的中心点ci,cj;然后根据对称关系,将i,j的值全部转化为左上角的范围之内注意事项:ci是整数,但是cj可能不是整数,因为当X宽度为偶数时,cj……

呐,来扫雷吧

摘要:解题思路:创建一个长和宽均为原本长度+2的bool数组,可避免繁杂的边界讨论注意事项:参考代码:#include <iostream>#include <string.h>using namespac……

众数问题C++

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>int main(){    int n,s[5000]……

这道题测试点有问题,草

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

字符串的处理方法

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string.h>using namespace std;int main() { int n; scanf("……

编写题解 1033: [编程入门]自定义函数之字符提取

摘要:解题思路:1.定义两个字符数组,第一个用来提取元音字母,第二个用来接收,储存元音字母,并进行排序              2.主函数用来字符串的输入,算法调用和结果字符串输出注意事项:1.首先要遍历……