题解列表

筛选

更适合c++的奇偶排序

摘要:解题思路:两个数组,一个存储,一个变化注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;int main() {……

图一·乐5

摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){    int n;    cin >> n;    int arr[100……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct people{    char sex[7];  ……

1329: 合并傻子

摘要:```cpp #include #include int max(int a,int b) { return a>b?a:b; } int min(int a,int b) {……

1331: 新三国争霸

摘要:```cpp #include #include using namespace std; int n,m,t,v,k,x,y,p,k1,k2,fa[301],f[51],d[51][51];……

小学生解法,刚学一周C,不会太复杂的

摘要:解题思路:将两行字符串相同的部分去除,剩下的两行字符串,哪个的字符数多,就以哪行的字符串数为操作次数(哈哈自己推下为什么)然后通过for循环比较a[i]b[i],要分开依次寻找出现重复的字符,统计su……

我奶奶都会

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){    int i;    char a[300];    gets(a)……

a+b的最简方法

摘要:/这题是一道非常经典的题目,是编程初学者的必会题。(大佬请屏蔽)//首先头文件、名字空间我就不说了,这是得会背的内容,如下:#include<bits/stdc++.h>//这是一个万能头文件,可以背……