题解列表
蓝桥杯2021年第十二届国赛真题-二进制问题 #C++#dfs
摘要:```c++
#include
using namespace std;
typedef long long ll;
typedef pair PII;
const int N = 1e……
自定义函数之字符串反转
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 int ……
用C语言for循环写蛇形矩阵解题(不用数组)
摘要:解题思路:(1)观察蛇形矩阵存在两个规律:①行和列都存在一个递增关系;②每行首数据可以用一个递增值加上一个值得到。 (2)可以先把每行首元素输出,在处理首元素后面的数据,第一……
C语言训练-求矩阵的两对角线上的元素之和
摘要:解题思路:#include<bits/stdc++.h>using namespace std;int main(){ int i,j,s=0; int n; int a[10][10]; cin>>……