珍珠pyn
珍珠pyn
全部文章
分类
归档
标签
去牛客网
登录
/
注册
珍珠pyn的博客
全部文章
(共8篇)
题解 | #守形数#
#include <iostream> #include <string> using namespace std; int n; int main() { while(cin >> n) { int x = n * n; ...
2023-09-11
0
290
题解 | #遍历链表#
#include <iostream> using namespace std; int n; struct node{ int v; struct node* next; }; typedef struct node* list; int main() { wh...
2023-09-11
0
282
题解 | #二叉树遍历#
#include <iostream> #include <vector> using namespace std; string a, b; vector<char>res; int na, nb; void dfs(int la, int ra, int lb...
2023-09-10
0
234
题解 | #Flipping Pancake#
#include <iostream> #include <vector> using namespace std; int n; int a[35]; int main() { while (cin >> n && n) { ...
2023-09-10
0
216
题解 | #编排字符串#
#include <iostream> #include <vector> using namespace std; int n; vector<string>s; string a; int main() { cin >> n; fo...
2023-09-10
0
278
题解 | #全排列#
#include <algorithm> #include <iostream> using namespace std; string s; int n; int vis[10]; char list[10]; void dfs(int x) { if(x == n...
2023-09-10
0
242
题解 | #单词替换#
#include <iostream> using namespace std; string s[110], a, b; int main() { int cnt = 0; while(cin >> s[++cnt]){} cnt--; a ...
2023-09-10
0
247
题解 | #二叉树#
#include <iostream> using namespace std; int x, y; int main() { while(cin >> x >> y) { while(x != y) { ...
2023-09-10
0
224