3022: 流感传染 呜呜呜呜呜呜呜呜呜呜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和m,以及sum用于计数 …… 题解列表 2024年11月20日 0 点赞 0 评论 228 浏览 评分:0.0
二级C语言-计负均正 摘要:#includeusing namespace std; int main() { int a[110]; for(int i=1;i>a[i]; double ans…… 题解列表 2024年11月20日 0 点赞 0 评论 308 浏览 评分:9.9
3033: 放苹果 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明,用于存储测试用例数量和两个整数m和n int t, n…… 题解列表 2024年11月20日 1 点赞 0 评论 331 浏览 评分:10.0
题目 3150: 蓝桥杯2023年第十四届省赛真题-冶炼金属 摘要: #include <bits/stdc++.h> #define int long long #define debuga(v, i) cout << #v << "[" << i << "]…… 题解列表 2024年11月20日 0 点赞 0 评论 265 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:非常规解法,专门对付10^18次方的大数量级注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int k1[]={1,3,5,7,9}…… 题解列表 2024年11月20日 0 点赞 0 评论 350 浏览 评分:2.0
2986: 判断元素是否存在,递推解法!!! 摘要:解题思路: 注意输入中间有一个逗号,一开始没注意错的都让我怀疑题目有问题了,呜呜呜注意事项:参考代码:#include"bits/stdc++.h" using namespace std; …… 题解列表 2024年11月20日 0 点赞 0 评论 157 浏览 评分:0.0
超容易理解的 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void verse(int a){ int ret[100]; int count=0; w…… 题解列表 2024年11月20日 2 点赞 0 评论 589 浏览 评分:10.0
状态压缩DP #2495: 信息学奥赛一本通T1592-国王 摘要:**大体思路** 如果 n=3,那么 [1 0 0 ] 代表第一行第一个位置放置棋子 由于每一行怎么摆放,只会受到上一行棋子摆放带来的影响 所以我们枚举每一行的所有==合法状态==,…… 题解列表 2024年11月20日 1 点赞 0 评论 162 浏览 评分:0.0
3030: 全排列 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int l; // 字符串长度 string s; …… 题解列表 2024年11月20日 1 点赞 0 评论 389 浏览 评分:10.0
信息学奥赛一本通T1317-组合的输出,深搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int n, r, a[100] = {1}; // …… 题解列表 2024年11月20日 0 点赞 0 评论 473 浏览 评分:0.0