摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e5+10; LL a[N]; LL n,m; bool check(LL mid) { LL t=0,cnt=1; for( 阅读全文
posted @ 2025-12-08 17:35
gosaky
阅读(4)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e6+10; int n; LL a[N],s[N]; int main() { cin>>n; LL sum=0; for( 阅读全文
posted @ 2025-12-08 16:41
gosaky
阅读(3)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e5+10; int n,k; LL a[N],b[N],s[N]; bool check(LL x) { //预处理前缀和数 阅读全文
posted @ 2025-12-08 10:30
gosaky
阅读(4)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=110; const char null='*'; vector<char> str(N,'*'); int n; //使用erase函数 int main() { cin 阅读全文
posted @ 2025-12-08 09:15
gosaky
阅读(4)
评论(0)
推荐(0)
摘要:
点击查看代码 #include <iostream> using namespace std; const int MOD = 1e9+7; int main() { int n; cin >> n; long long sum_mod = 0; for (int i = 0; i < n; i++ 阅读全文
posted @ 2025-12-08 08:39
gosaky
阅读(5)
评论(0)
推荐(0)

浙公网安备 33010602011771号