[编程入门]二维数组的转置 AC代码 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;void Transpose(int arr[3][3]){ for (int i = 0; i < 3; i++…… 题解列表 2021年08月17日 0 点赞 0 评论 351 浏览 评分:9.9
究极头铁硬算大法 摘要:解题思路: 莽就完事儿了!注意事项:参考代码:#include<iostream> using namespace std; float count(int,char); int main…… 题解列表 2021年08月15日 0 点赞 0 评论 472 浏览 评分:0.0
2546: 祖先 并查集 摘要:解题思路:并查集模板题注意事项:注意合并方向。x是y的祖先,所以fa[Find(y)]=Find(x)参考代码:#include const int M=100001; using namespac…… 题解列表 2021年08月15日 0 点赞 0 评论 638 浏览 评分:9.9
优质题解 蓝桥杯2021年第十二届省赛真题-砝码称重 摘要:解题思路: 众所周知 天平右边放砝码,左边放物品。f[i][j]代表前i个砝码是否可以称出j的重量,f[i][j]=1表示存在f[i][j]=0表示不存在。状态转移方程:当f[i-1][j]=…… 题解列表 2021年08月14日 0 点赞 2 评论 5174 浏览 评分:9.4
C语言训练-最大数问题-题解(C++代码)二叉树multiset与迭代器运用 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set> using namespace std;int main(){ int a,z; multis…… 题解列表 2021年08月14日 0 点赞 0 评论 474 浏览 评分:0.0
1088: A+B for Input-Output Practice (IV) 解题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int m,j,i; int a; …… 题解列表 2021年08月14日 0 点赞 0 评论 240 浏览 评分:0.0
奇度单增序列(完美c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[500],i,j=0,m; //输入 ci…… 题解列表 2021年08月13日 0 点赞 0 评论 708 浏览 评分:7.4
蓝桥杯算法训练-排序 不用(for)的代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[3],i; for(i=0;i<3;i++) c…… 题解列表 2021年08月12日 0 点赞 0 评论 260 浏览 评分:9.9
链表报数问题 C++,stl-list 摘要:解题思路:有n个人围成一圈,顺序从1开始排号。从第1个人开始报数(从1到3报数),凡报到3的人退出圈子,(之后再从一数到三),问最后留下的是原来第几号的那位。要求用循环链表实现。这里的想法和题目中描述…… 题解列表 2021年08月12日 0 点赞 0 评论 316 浏览 评分:0.0
6666666666阿萨德 摘要:解题思路:注意事项:参考代码:// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#i…… 题解列表 2021年08月11日 0 点赞 0 评论 235 浏览 评分:0.0