摘要: 目录链接题面题意题解代码总结 链接 D - Only one of two 题面 题意 求第\(k\)个只能被\(N\)或\(M\)整除的数 题解 \([1,x]\)中的能被\(n\)整除的数有\(\lfloor \frac{x}{n} \rfloor\)个 \([1,x]\)中的能被\(m\)整除 阅读全文
posted @ 2024-02-26 10:46 cxy8 阅读(16) 评论(0) 推荐(0) 编辑
摘要: A 两种情况 两个字符相同只有2 两个字符不相同4 #include <bits/stdc++.h> #define int long long #define rep(i,a,b) for(int i = (a); i <= (b); ++i) #define fep(i,a,b) for(int 阅读全文
posted @ 2024-02-26 09:50 cxy8 阅读(4) 评论(0) 推荐(0) 编辑