题解列表

筛选

1206: 字符串问题

摘要:```cpp #include #include using namespace std; int main() { char a[300]; gets(a); ……

单词的长度(istringstream)

摘要:解题思路:  利用sstream 头文件中的istringstream 函数自动分出单词(以字符串的形式保存), 后面直接打印size函数注意事项:参考代码:#include<iostream>#in……

1366: 超级书架2

摘要:解题思路:运用快排、while循环;注意事项:参考代码:#include<bits/stdc++.h> using namespace std; long long n,b,a[20005]; ……

连续出现的字符(简易版)

摘要:解题思路: 遍历字符串注意事项:参考代码:#include<iostream>#include <string>using namespace std;int main(){ int k; strin……

2998: 电影票(极为简单)

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

3042: 金银岛

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct a{ double mi,vi,zi; }b[10000……

3041: 最大子矩阵

摘要:解题思路:1.s[][]为和第二个循环为来赋s的初值。 2.第三个循环来算x与mx判断哪个大 3.输出注意事项:要定义mx和x i2,i1,j1,j2 不要弄混参考代码:#include<bit……

3041: 最大子矩阵

摘要:解题思路:要就复制吧,爱就点赞吧注意事项:参考代码:#include<bits/stdc++.h> using namespace std; long long x,n,a[105][105],s……