题解列表
数组的转置-仿照一维数组输入
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int r=3,c=3……
2939: 最匹配的矩阵
摘要:解题思路:注意事项:本题较难参考代码:#include <stdio.h>
#include <stdlib.h>
#include <math.h>
using namespace std;
……
2117: 信息学奥赛一本通T1310-车厢重组
摘要:解题思路:本题运用冒泡排序,并计算排序次数视频解析:https://www.dotcpp.com/oj/assets/addons/assets/addons/ueditor/php/upload/i……
2950: 素数回文数的个数
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;//判断是否为素数int ss(int x){ if(x<2) { ……
2966: 最大质因子序列
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ss(int x){//判断是否为素数 int sum=0; for(i……
2968: 区间内的真素数
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ss(int x){//判断是否为素数 if(x<2) { ……
2981: 二进制分类
摘要:解题思路:int er(int a){ int sum1=0,sum0=0,b=a; for(;;) { if(b%2==1) { sum1++……
用c++来解决数据结构中关于栈的括号匹配问题,详细过程
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;#define MaxSize 100//定义栈中元素最大……