yigu2468
yigu2468
全部文章
分类
归档
标签
去牛客网
登录
/
注册
yigu2468的博客
全部文章
(共47篇)
题解 | #字符串加密#
#include <iostream> #include <map> using namespace std; string ch = "abcdefghijklmnopqrstuvwxyz"; int main(){ string key,...
2024-03-23
0
184
题解 | #查找兄弟单词#
#include <iostream> #include <map> #include <vector> using namespace std; map<string,int> mp; void genOther(string str,int ...
2024-03-23
0
162
题解 | #四则运算#
#include <iostream> #include <stack> using namespace std; int priority(char op) { if (op == '#') return 0; if (op == '+' || op =...
2024-03-23
0
213
题解 | #杨辉三角的变形#
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { int index = -1; if(n>2){ ...
2024-03-23
0
172
题解 | #百钱买百鸡问题#
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { for (int i = 0; i < 4; ++i) { ...
2024-03-22
0
184
题解 | #最长回文子串#
#include <iostream> #include <vector> using namespace std; int main() { string str; while (cin >> str) { int n = st...
2024-03-22
0
156
题解 | #Sudoku#
#include <iostream> using namespace std; /** * 回溯算法 * row[i][num]表示第i行是否出现过num * col[j][num]表示第j列是否出现过num * area[k][num]表示第k个3*3单元格是否出现过nu...
2024-03-21
0
188
题解 | #简单错误记录#
#include <iostream> #include <sstream> #include <unordered_map> #include <vector> using namespace std; int main() { stri...
2024-03-21
0
220
题解 | #素数伴侣#
#include <iostream> #include <vector> using namespace std; bool is_prime(int num) { if (num <= 1) return false; for (int i = ...
2024-03-21
0
219
题解 | #统计每个月兔子的总数#
#include <iostream> using namespace std; int rabbit(int one,int two,int three,int n){ int tem; while(n--){ three = three + two;...
2024-03-20
0
154
首页
上一页
1
2
3
4
5
下一页
末页