摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2e6+10; int n; int q[N]; int a[N]; long long s[N]; int main() { ios::sync_with_stdio(0 阅读全文
posted @ 2026-02-06 21:41 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=5e5+10; int a[N]; LL s[N]; int q[N]; int n,m; int main() { ios:: 阅读全文
posted @ 2026-02-06 20:48 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e6+10; int k,n; int a[N],q[N]; int hh=0,tt=-1; int main() { ios::sync_with_stdio(0),c 阅读全文
posted @ 2026-02-06 20:19 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1010,M=1010; int h[M]; int a[N][N]; int stk[N],tt=0; int n,m; int l[M],r[M]; int main( 阅读全文
posted @ 2026-02-05 21:39 AnoSky 阅读(0) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e6+10; LL h[N],v[N],ans[N]; int n; int main() { ios::sync_with_ 阅读全文
posted @ 2026-02-05 20:46 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=3e6+10; int a[N]; int ans[N]; int n; int main() { cin>>n; for(int i=1;i<=n;i++){ cin>> 阅读全文
posted @ 2026-02-05 20:21 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e3+10; bool st[N]; queue<int> q; int m,n; int main() { ios::sync_with_stdio(0),cin.ti 阅读全文
posted @ 2026-02-05 20:05 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 ListNode dummy = new ListNode(-1); ListNode cur = dummy; while (list1 != null && list2 != null) { if (list1.val <= list2.val) { cur.next = list 阅读全文
posted @ 2026-02-05 16:21 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = null; * 阅读全文
posted @ 2026-02-05 16:11 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = 阅读全文
posted @ 2026-02-05 15:37 AnoSky 阅读(1) 评论(0) 推荐(0)