luckyii
luckyii
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
luckyii的博客
全部文章
(共4篇)
水滴溢出
#include<bits/stdc++.h> using namespace std; int num1=1;//左水滴数量 int num2=1;//右水滴数量 void slove() { i...
C++
2024-01-27
0
219
机器翻译
#include <bits/stdc++.h> using namespace std; /* 特点:先进先出-队列 外存查询条件:队列中无该单词 队列替换条件:队列的容量等于三 */ int num=0; queue<int>&nb...
C++
模拟
队列
2024-01-26
1
231
时间复杂度
#include<bits/stdc++.h> using namespace std; /* O(1):无法进入循环、x>=y且x,y为常数、x=y=n 其他:n:为常数,y为n */ int maxk = 0;//最大级数...
C++
栈
模拟
贪心
2024-01-25
1
236
字符串展开
#include <bits/stdc++.h> #include using namespace std; int p1,p2,p3; string str; //填充函数 void print(int i) { char per=str[i-1]; char pos=str[i+1...
C++
字符串
2024-01-24
1
282