摘要: M. Find the Easiest Problem 签到题,直接模拟即可 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll = l 阅读全文
posted @ 2025-09-19 08:50 LYET 阅读(18) 评论(0) 推荐(0)
摘要: Problem L. 网络预选赛 签到,直接模拟即可 点击查看代码 #include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; vector<string>a(n); for(int i=0;i<n;i++ 阅读全文
posted @ 2025-09-17 16:07 LYET 阅读(48) 评论(0) 推荐(0)
摘要: A. Shift Sort 发现左移或右移等价于交换两个位置的数 所以答案即为前 \(cnt0\) 个数中有几个 \(1\) 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pai 阅读全文
posted @ 2025-09-11 14:53 LYET 阅读(42) 评论(0) 推荐(0)
摘要: 比赛链接:https://qoj.ac/contest/2513 G Sorting 拓扑排序后,保证每一层都只有一个数,且 \(1-n\) 每个数都在一层 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace st 阅读全文
posted @ 2025-09-11 14:27 LYET 阅读(80) 评论(0) 推荐(0)
摘要: C. Yet Another Array Problem 题意:大小为 \(n\) 的数组 \(a\),找到对于每一个 \(0<=r<k\),有多少个 \(a\) 的子集满足子集和 \(mod~~k~=r\) 纯背包问题,定义 \(f[i][j]\) 表示从前 \(i\) 个数中选,子集和为 \(j 阅读全文
posted @ 2025-08-14 19:17 LYET 阅读(31) 评论(0) 推荐(0)
摘要: A - I'm a teapot 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll = long long; using ull = 阅读全文
posted @ 2025-08-12 22:17 LYET 阅读(19) 评论(0) 推荐(0)
摘要: A - G1 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll = long long; using ull = unsigned l 阅读全文
posted @ 2025-08-12 12:40 LYET 阅读(9) 评论(0) 推荐(0)
摘要: A. Lever 只需要考虑每个 \(a_i~>~b_i\) 的数,计算差值累加即可 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll 阅读全文
posted @ 2025-08-11 22:49 LYET 阅读(126) 评论(0) 推荐(0)
摘要: 个人做题顺序/大致难度排序 1. 1009 对撞器 知识点:签到 如果最大值在两端,则可以让这个最大值直接产生 \(n-2\) 次能量 如果最大值在中间,则这个最大值可以产生 \(n-3\) 次能量,然后 \(a[1],a[n]\) 再碰撞一次产生能量 #include<bits/stdc++.h> 阅读全文
posted @ 2025-08-06 01:16 LYET 阅读(151) 评论(0) 推荐(1)
摘要: 难度排序,前六题,难度签到~铜牌题 1. 签到 纯签到 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll = long long; using ul 阅读全文
posted @ 2025-07-31 21:32 LYET 阅读(69) 评论(0) 推荐(0)