题解列表

筛选

STL函数翻转

摘要:解题思路:C++STL库函数翻转注意事项:参考代码:```#include<bits/stdc++.h>using namespace std;int main(){    vector<int> a……

两种方法(C++)

摘要:解题思路:注意事项:参考代码:1.#include<iostream> #include <algorithm> #include <string> using namespace std;……

1003: [编程入门]密码破译

摘要:解题思路:由China变成Glmre可知:原来的字母由它后面的第4个所代替。那么我们就可以声明五个变量,然后输入一下,把五个字符变量的ASCII码值+4,最后输出即可。(https://baike.b……

编写题解 1206: 字符串问题(c++)

摘要:解题思路:相同的字符串进行逆转,用两个不同的变量i,j标记,i记录串尾位置,j记录串头位置,用个for循环就好参考代码:               #include <iostream>#inclu……

1116: IP判断(C++代码)

摘要:#include <iostream> #include <string> using namespace std; //判断ip是否合法  bool isLegal(string i……