bigbigcake
bigbigcake
全部文章
分类
归档
标签
去牛客网
登录
/
注册
bigbigcake的博客
全部文章
(共145篇)
题解 | #畅通工程#
#include <iostream> using namespace std; int n; //x为下标 int getFather(int arr[],int x){ while(arr[x] !=-1){ x = arr[x]; } ret...
2024-03-14
0
60
题解 | #二叉树遍历#
#include <iostream> using namespace std; class node{ public: char data=' '; node* left=nullptr; node* right=nullptr; }; node* bu...
2024-03-14
0
54
题解 | #堆栈的使用#
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ stack<int>stk; while(n--){...
2024-03-14
0
49
#ZerocomplexityTransposition#
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ string s; vector<string>v;...
2024-03-14
0
57
题解 | #找位置#
#include <bits/stdc++.h> #include <utility> using namespace std; class myChar { public: char c; vector<int>index; }; int m...
2024-03-14
0
50
题解 | #小白鼠排队#
#include <bits/stdc++.h> using namespace std; class rat{ public: string hat; int weight; }; bool cmp(rat r1, rat r2){ re...
2024-03-14
0
52
题解 | #整数奇偶排序#
#include <bits/stdc++.h> using namespace std; int main() { vector<int>odd,even; int n; while(cin>>n){ if(n%2==1...
2024-03-14
0
51
题解 | #a+b#
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b) { // 注意 while 处理多个 case cout ...
2024-03-13
0
57
题解 | #编排字符串#
#include <bits/stdc++.h> using namespace std; int main() { int n;cin>>n; vector<string>v; while(n--){ int k=1; ...
2024-03-13
0
62
题解 | #反序数#
#include <bits/stdc++.h> using namespace std; int main() { for(int i =1000;i<=9999;i++){ int j = i*9; string s1 = to_stri...
2024-03-13
0
47
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页