勤劳的小蜗牛许愿简历通过
勤劳的小蜗牛许愿简历通过
全部文章
分类
归档
标签
去牛客网
登录
/
注册
勤劳的小蜗牛许愿简历通过的博客
全部文章
(共67篇)
题解 | #游游的字母翻倍#
从后往前insert 防止字符串变长 出错 #include <cstring> #include <iostream> #include <vector> using namespace std; int main() { int n, m; ...
2024-11-30
0
31
题解 | #小红的字符生成#
用位运算 把输入数字所有的1找到 然后判断是2的几次方 #include <iostream> using namespace std; int main() { int n; cin >> n; while(n){ int t = ...
2024-11-26
0
28
题解 | #小红的排列构造#
偶数绝对不是质数 所以i + ai => i + i123数列中 必须是321 因为123都是质数 #include <iostream> using namespace std; int main() { int n; cin >> n; i...
2024-11-26
0
30
题解 | #小红的字符串构造#
#include <iostream> #include <map> #include<vector> #include <unordered_map> using namespace std; int main(){ string s; ...
2024-11-26
0
25
题解 | #小欧的奇数#
#include <iostream> using namespace std; int main() { // 只要一个数列里有两个偶数 一个奇数 / 三个奇数 int n; cin >> n; int ocnt = 0, jcnt = 0...
2024-11-26
0
25
题解 | #游游的整数切割#
不论怎么分割 都是在与最后一位数相加 只需要判断当前切割到的左边数字和字符串尾部数字相加是否为偶数 #include <iostream> using namespace std; int main() { string s; cin >> s; i...
2024-11-26
0
37
题解 | #小美的因子查询#
#include <cmath> #include <iostream> using namespace std; int main() { int n; cin >> n; while(n --){ int x; ...
2024-11-22
0
26
题解 | #小红取数#
选择 a[i]:如果选择当前的元素 a[i],我们可以从前 i - 1 个元素中找到余数为 j 的情况。选择了 a[i] 之后,新的余数就是 (j + a[i]) % k。那么 dp[i][(j + a[i]) % k] 可以更新为 dp[i - 1][j] + a[i],表示我们在余数为 j 的最...
2024-11-13
0
56
题解 | #字母收集#
#include <iostream> using namespace std; const int N = 510; char a[N][N]; int dp[N][N]; int main() { int n, m; cin >> n >>...
2024-11-13
0
30
题解 | #【模板】二维差分#
#include <iostream> using namespace std; const int N = 1010; long long a[N][N], b[N][N]; void insert(int x1, int y1, int x2, int y2, int k) { ...
2024-11-13
0
26
首页
上一页
1
2
3
4
5
6
7
下一页
末页