Chisatowo
Chisatowo
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Chisatowo的博客
全部文章
(共3篇)
题解 | 10进制 VS 2进制
采用大数除法来实现进制转换,容易错的一个误区在于不用执着于利用字符串的最后一位进行求余,当你从m进制转换为n进制且n > m时不能这么做, 只能通过大数除法做除留余数进行进制转换. #include<bits/stdc++.h> using namespace std; typed...
2025-03-20
0
46
题解 | 常规背包解法,但是设置pair作为容器元素存储邮票数目
#include<bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; int main() { // M代表邮票总值,N代表邮票数目 int M = 0,...
2025-03-12
0
33
题解 | 全排列
#include<bits/stdc++.h> using namespace std; typedef unsigned long long ull; #include<bits/stdc++.h> using namespace std; // 回溯穷举(可以将题目逻辑...
2025-03-09
0
39