pinkbin
pinkbin
全部文章
分类
归档
标签
去牛客网
登录
/
注册
pinkbin的博客
全部文章
(共11篇)
题解 | #遍历链表#
#include <iostream> #include <vector> using namespace std; struct Node { int val; Node* next = nullptr; Node(int val) : val(...
2023-02-28
0
340
题解 | #阶乘#
#include <iostream> using namespace std; int main() { int a; while (cin >> a) { // 注意 while 处理多个 case int y1 = 0, y2 = 0;...
2023-02-28
0
222
题解 | #IP地址#
#include <iostream> #include <string> using namespace std; int main() { string id; while (cin >> id) { bool flag =...
2023-02-28
0
302
题解 | #N阶楼梯上楼问题#
#include <iostream> using namespace std; int main() { int N; cin >> N; int a = 1, b = 1, tmp; if (N != 1) { for ...
2023-02-28
0
252
题解 | #二叉排序树#
#include <iostream> using namespace std; struct Node { int val; Node* left, *right; Node() { left = right = nullptr; }...
2023-02-20
0
224
题解 | #字符串连接#
#include <iostream> using namespace std; int main() { char a[201], b[101]; while (cin >> a >> b) { // 注意 while 处理多个 case ...
2023-02-20
0
295
题解 | #A+B#
#include <iostream> #include <sstream> #include <string> using namespace std; int my_stoi(string s) { stringstream ss; for ...
2023-02-20
0
302
题解 | #农夫、羊、菜和狼的故事#
#include <iostream> #include <vector> #include <queue> using namespace std; class FSM { private: vector<bool>* status; ...
2023-02-20
0
341
题解 | #最小年龄的3个职工#
#include <iostream> #include <queue> using namespace std; class People { private: int index; string name; short age; public: ...
2023-02-20
0
277
题解 | #奇偶校验#
#include <bitset> #include <iostream> using namespace std; int main() { string s; while (cin >> s) { // 注意 while 处理多个 case ...
2023-02-20
2
338
首页
上一页
1
2
下一页
末页