题解列表

筛选

A+B from beiqiao(C++)

摘要:#include<iostream> using namespace std; int main() {     int a,b;     while(cin>>a>>b)    //编译器……

简单字符串的不简单解法

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ int N; string s; cin>>N; getl……

判断最后一个字符

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string s1,s2; cin>>s1>>s2; in……

使用reverse求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string str; cin>>str; cout<<s……

使用stringstream求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;vector<string>kk;int main(){ int N; strin……

使用getline求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;vector<string>kk;int main(){ int N; strin……

2068: [STL训练]Ignatius and the Princess IV

使用数组和sort做的,简单易懂````###来试试编辑一篇文章吧,祝```cpp#include#include#includeusingnamespacestd;ints[999999];intmain(){intn;while(cin>>n){inti=0,
优质题解

蓝桥杯历届试题-九宫重排C++ BFS+SET查重(目前本网站最简)

解题思路:我不喜欢啰嗦的代码,我用二维数组来做会让代码变得啰嗦,所以我用一维数组,那么上下左右走的方向数组可以换为一维数组的{-3,-1,1,3}结构体内的代码我只需要当前的状态state以及我到当前状态走的步数step注意事项:如果我用一维数组的话,

Minesweeper仅用数组超简单解法c++

摘要:解题思路:1.输入m*n雷盘。              2.两个for循环检测是‘*’或‘.&#39;。                 如果是‘*’直接输出。                &