_becky
_becky
全部文章
分类
题解(76)
归档
标签
去牛客网
登录
/
注册
_becky的博客
加油~
TA的专栏
76篇文章
0人订阅
华为机考
76篇文章
1138人学习
全部文章
(共75篇)
题解 | #字符串通配符#
来自专栏
#include<bits/stdc++.h> using namespace std; bool match(const char* s,const char* p) { if((*p=='\0')&&(*s=='\0'))return true; if...
C++
2022-03-10
0
228
题解 | #查找两个字符串a,b中的最长公共子串#
来自专栏
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string s1, s2; while(cin >> ...
C++
2022-03-10
3
241
题解 | #密码验证合格程序#
来自专栏
#include<iostream> #include<string> using namespace std; int main() { string s; while(cin >> s) { if(s.length() ...
C++
2022-03-10
2
397
题解 | #矩阵乘法计算量估算#
来自专栏
#include <bits/stdc++.h> using namespace std; int a[20][2]; string s; int main() { int n; while(cin >> n) { for(int i=...
C++
2022-03-10
0
251
题解 | #矩阵乘法#
来自专栏
#include <iostream> using namespace std; int main() { int x,y,z; while (cin >> x >> y >> z) { int number,A...
C++
2022-03-10
0
228
题解 | #购物单#
来自专栏
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main() { int N, m; cin >> N >&g...
C++
2022-03-10
0
299
题解 | #配置文件恢复#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string s; vector<pair<string, string>> instru = {{"reset",""},{"re...
C++
2022-03-09
0
263
题解 | #参数解析#
来自专栏
#include<bits/stdc++.h> using namespace std; int main() { string s,e; int pos; while(getline(cin,s)) { while((pos=s.find...
C++
2022-03-09
0
216
题解 | #找出字符串中第一个只出现一次的字符#
来自专栏
#include <iostream> using namespace std; int main() { string str; while (getline(cin, str)) { int a[128] = {0}, slen = str.s...
C++
2022-03-09
0
244
题解 | #24点游戏算法#
来自专栏
#include<iostream> #include<vector> using namespace std; bool check(vector<double> n, double a) { if(n.empty())return a == 24; ...
C++
2022-03-09
4
303
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页