摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 1e6 + 10; int a[N], q[N]; int main() { int n, k; scanf("%d %d", &n, &k); for (int i = 0; 阅读全文
posted @ 2022-04-30 17:02 wKingYu 阅读(47) 评论(0) 推荐(1)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 1e5 + 10; int stk[N], tt = 0; int main() { int n; scanf("%d", &n); while (n --) { int x; 阅读全文
posted @ 2022-04-30 16:14 wKingYu 阅读(36) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; const int N = 1e5 + 10; int q[N]; int l = 0, r = 0; void push(int x) { q[r] = x; r ++; } void pop() { l 阅读全文
posted @ 2022-04-30 00:37 wKingYu 阅读(34) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<stack> #include<cstring> #include<unordered_map> using namespace std; stack<int> nums; stack<char> op; unordered_ma 阅读全文
posted @ 2022-04-30 00:29 wKingYu 阅读(48) 评论(0) 推荐(0)