02 2023 档案
摘要:L2-002 链表去重 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int f[N],n,m,p[N],q[N]; struct LAN { int z; int nz; }lan[N]; int main() {
阅读全文
摘要:L2-003 月饼 #include<bits/stdc++.h> using namespace std; int n,need; struct Value { double a,b,v; }val[1010]; bool cmp(Value x,Value y) { return x.v>y.v
阅读全文
摘要:L2-005 集合相似度 #include<bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n,m,t; set<int>s[51];//此题主要考虑用set来解决 cin>>n; for(int
阅读全文