摘要: A. Vadim's Collection #include <bits/stdc++.h> #define int long long using namespace std; int cnt[10]; signed main() { ios::sync_with_stdio(false); ci 阅读全文
posted @ 2025-04-27 10:59 D06 阅读(65) 评论(0) 推荐(0)
摘要: 木柜子组乐队 #include <bits/stdc++.h> #define int long long using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); int T; cin>>T; whi 阅读全文
posted @ 2025-04-26 15:41 D06 阅读(51) 评论(0) 推荐(0)
摘要: 小凯逛超市 #include <bits/stdc++.h> #define int long long using namespace std; const int mod=1000000007; int f[405][405]; signed main() { ios::sync_with_st 阅读全文
posted @ 2025-04-15 14:31 D06 阅读(71) 评论(0) 推荐(0)
摘要: 优秀是一种习惯 持家 #include <bits/stdc++.h> using namespace std; #define int long long vector<int>a[2]; int s[10005]; signed main() { ios::sync_with_stdio(fal 阅读全文
posted @ 2025-04-02 20:17 D06 阅读(44) 评论(0) 推荐(0)
摘要: 修复公路 #include <bits/stdc++.h> using namespace std; int a[300005],fa[300005]; int get(int x) { if(fa[x]==x) { return x; } return fa[x]=get(fa[x]); } in 阅读全文
posted @ 2025-04-02 15:40 D06 阅读(23) 评论(0) 推荐(0)
摘要: A. To Zero #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int T; cin>>T; while(T--) { int n,k; ci 阅读全文
posted @ 2025-03-19 17:45 D06 阅读(43) 评论(0) 推荐(0)
摘要: 签到 从公告里听说可以使用 C++ 中的 std::cerr 进行输出调试,以后尝试一下 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int T 阅读全文
posted @ 2025-03-19 16:05 D06 阅读(41) 评论(0) 推荐(0)
摘要: 学历史导致的 真心没必要专门写个程序给字符串加引号呀 #include <bits/stdc++.h> using namespace std; const string tian[]={"jia","yi","bing","ding","wu","ji","geng","xin","ren","g 阅读全文
posted @ 2025-03-18 22:32 D06 阅读(128) 评论(0) 推荐(0)
摘要: 简化问题:求距离->求A、B两点的坐标 把握本质:只考虑操作对坐标的影响 简化运算:给1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、16分组需要特判整除,归根结底是因为没有从0开始编号,把它们各自减1,变成0、1、2、3、4、5、6、7、8、9、10、11、12、13、14 阅读全文
posted @ 2025-03-05 15:10 D06 阅读(12) 评论(0) 推荐(0)
摘要: A. AUS #include <bits/stdc++.h> using namespace std; int fa[30]; int get(int x) { if(fa[x]==x) { return x; } return fa[x]=get(fa[x]); } int main() { i 阅读全文
posted @ 2025-03-04 17:14 D06 阅读(182) 评论(0) 推荐(0)
//雪花飘落效果