摘要:
题目链接 第一种方法:从上到下 第二种:从下到上 阅读全文
posted @ 2024-05-23 21:28
LTphy
阅读(23)
评论(0)
推荐(0)
摘要:
(n-i+1) 相当于吃没事的个数 = 饱腹感 #include <bits/stdc++.h> using namespace std; const int N = 3e5 + 7; int n; int a[N]; long long sum; //!! double maxn; int mai 阅读全文
posted @ 2024-05-23 21:26
LTphy
阅读(38)
评论(0)
推荐(0)
摘要:
题目链接 #include <bits/stdc++.h> using namespace std; const int N = 1e6+7; int n,x; int a[N]; long long sum; int main() { cin>>n>>x; for(int i=1;i<=n;i++ 阅读全文
posted @ 2024-05-23 21:18
LTphy
阅读(13)
评论(0)
推荐(0)

浙公网安备 33010602011771号