题解列表

筛选

高精度加法,vector

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;const int n = 1e6 + 10;vector<i……

字符串连接

摘要:```cpp #include using namespace std; int main() { string s,t; getline(cin,s); getline(……

字符大法好

摘要:解题思路:用字符串一个一个取出来注意事项:特别注意就是别想复杂了,一般数学取数字问题多多考虑字符串参考代码:#include <iostream>#include <stdio.h>using nam……

2939: 最匹配的矩阵

摘要:解题思路:注意事项:本题较难参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> using namespace std; ……

2950: 素数回文数的个数

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;//判断是否为素数int ss(int x){    if(x<2)    {       ……

2966: 最大质因子序列

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ss(int x){//判断是否为素数    int sum=0;    for(i……

2968: 区间内的真素数

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ss(int x){//判断是否为素数    if(x<2)    {       ……