摘要:
P7910 [CSP-J 2021] 插入排序 很诡异你知道吗? 这题纯纯缝合怪 点击查看代码 #include <bits/stdc++.h> using namespace std; pair<int, int> b[8005]; int t[8005], n, q, a[8005]; void 阅读全文
posted @ 2025-05-13 16:34
Chuan81
阅读(60)
评论(0)
推荐(0)
摘要:
P4653 [CEOI 2017] Sure Bet 我去,第一次独立AC绿题 这b题好多Checkpoint 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N = 1e5+10; double ans = 0; doub 阅读全文
posted @ 2025-05-13 12:24
Chuan81
阅读(8)
评论(0)
推荐(0)
摘要:
P3143 [USACO16OPEN] Diamond Collector S 注释掉的代码的问题是第一次贪心求最大区间可能会覆盖掉真正最优,ans1虽然取了最大值,但ans2+ans1才是我们需要的值,所以只能70% 点击查看代码 #include<bits/stdc++.h> using nam 阅读全文
posted @ 2025-05-13 09:33
Chuan81
阅读(7)
评论(0)
推荐(0)

浙公网安备 33010602011771号