上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: csdn 阅读全文
posted @ 2022-05-17 21:28 兮何其 阅读(11) 评论(0) 推荐(0)
摘要: #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 1010; int a[N], b[N]; int n; int main() { while(cin >> 阅读全文
posted @ 2022-05-17 20:42 兮何其 阅读(29) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 100010; int n; int a[N], f[N], g[N]; 阅读全文
posted @ 2022-05-17 20:40 兮何其 阅读(57) 评论(0) 推荐(0)
摘要: #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 10010; int n; struct Segment { int x, 阅读全文
posted @ 2022-05-15 17:25 兮何其 阅读(35) 评论(0) 推荐(0)
摘要: ####不修改val的值,只改变链表结构,时间复杂度O (nlgn), 额外空间O(lgn) class Solution { public: ListNode* getTail(ListNode *head){ while(head->next){ head = head->next; } ret 阅读全文
posted @ 2022-05-15 15:33 兮何其 阅读(53) 评论(0) 推荐(0)
摘要: ACwing class Solution { public: vector<int> getMinimumValue(int n) { const int INF = ~(1 << 31); //自然是有符号数的最大值 int l = 0, r = n - 1; //二分边界 while(l <= 阅读全文
posted @ 2022-05-15 15:23 兮何其 阅读(48) 评论(0) 推荐(0)
摘要: ACwing 阅读全文
posted @ 2022-05-15 15:05 兮何其 阅读(21) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; int n,m; int cnt; int mp[N][N]; int ans[N*N]; //mp 该点所属连通块的标号, ans表示该连通块的大小 char g[N 阅读全文
posted @ 2022-05-14 20:35 兮何其 阅读(41) 评论(0) 推荐(0)
摘要: ACwing 空调 阅读全文
posted @ 2022-05-14 13:40 兮何其 阅读(25) 评论(0) 推荐(0)
摘要: csdn 能添加&符号的就是左值,否则就是右值,匿名变量一律都属于右值 阅读全文
posted @ 2022-05-04 17:42 兮何其 阅读(27) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 12 下一页