wrdoct
wrdoct
全部文章
题解
复习(44)
面经(1)
归档
标签
去牛客网
登录
/
注册
wrdoct的博客
全部文章
/ 题解
(共88篇)
题解 | #统计字符#
来自专栏
#include<iostream> #include<string> using namespace std; int main() { string str = ""; while (getline(cin, str)) { i...
C++
2022-05-19
0
323
题解 | #蛇形矩阵#
来自专栏
#include <bits/stdc++.h> using namespace std; void process(int N){ /*if(N == 0){ cout << "" << endl; }*/ //第一行...
C++
2022-05-17
0
251
题解 | #密码截取#
来自专栏
#include <bits/stdc++.h> using namespace std; int getLength(string str, int l, int r){ while(l >= 0 && r < str.size() &&...
C++
2022-05-17
0
269
题解 | #查找兄弟单词#
来自专栏
#include <bits/stdc++.h> using namespace std; void process(int wordsNum, int& ans, string& res){ vector<string> vecStr(words...
C++
2022-05-16
0
257
题解 | #设计LRU缓存结构#
来自专栏
struct DoubleLinkedNode{ int key; int value; DoubleLinkedNode* prev; DoubleLinkedNode* next; DoubleLinkedNode() : key(0), value(0), pr...
C++
2022-05-15
1
337
题解 | #单词倒排#
来自专栏
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; int main(){ string str...
C++
2022-05-12
0
274
题解 | #密码验证合格程序#
来自专栏
#include <bits/stdc++.h> using namespace std; //包括大小写字母.数字.其它符号,以上四种至少三种 bool checkChar(string str){ int i = 0, j = 0, k = 0, l = 0; f...
C++
2022-05-11
0
243
题解 | #合唱队#
来自专栏
#include <bits/stdc++.h> using namespace std; void process(vector<int> vec, int N, int& res){ vector<int> leftNum(N, 0); ...
C++
2022-05-11
0
230
题解 | #识别有效的IP地址和掩码并进行分类统计#
来自专栏
//#include <bits/stdc++.h> #include <iostream> #include <string> #include <sstream> #include <vector> using namespace s...
C++
2022-05-10
0
248
题解 | #截取字符串#
来自专栏
#include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; int main(){ string str = ""; getline(c...
C++
2022-05-07
0
316
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页