03 2023 档案
摘要:题目描述 对于长度为 5 位的一个 01 串,每一位都可能是 0 或 1,一共有 32 种可能。它们的前几个是: 00000 00001 00010 00011 00100 请按从小到大的顺序输出这 32 种 01 串。 输入格式 本试题没有输入。 输出格式 输出 32 行,按从小到大的顺序每行一个
阅读全文
摘要:统计一下每种数位的数量,存在数组里,然后再来找就可以了,萌新代码比较难看,欢迎支持提建议(csdn博客https://blog.csdn.net/weixin_75172140) #include <bits/stdc++.h> using namespace std; int main() { i
阅读全文
摘要:这方法不能叫dps吧,只能说是递归?偷懒懒得想名字了(csdn博客https://blog.csdn.net/weixin_75172140) #include <bits/stdc++.h> using namespace std; int ans = 0; //种类// void dps(int
阅读全文
摘要:2015年简单题多点,找回了一点自信,2017还18简直噩梦 #include <bits/stdc++.h> using namespace std; int main() { int y, m, d, n; cin >> y >> m >> d >> n;//初始年,月,日// while (n
阅读全文
摘要:#include <bits/stdc++.h> using namespace std; bool num[9] ; int ans = 0; vector<int>v; void cul(double a, double b, double c, double d, double e, doub
阅读全文

浙公网安备 33010602011771号