题解列表
2839: 石头剪刀布(百炼成钢,做了好多回才过)
摘要:解题思路:#include using namespace std;
int a[1000];
int b[1000];
int n;
int main()
{
int c,d,s……
2839: 石头剪刀布
摘要:解题思路:注意事项:i%na,i%nb参考代码: #include <iostream> using namespace std; int n,na,nb,a=0,b=0,A[100……
STL :蓝桥杯算法提高VIP-队列操作
摘要:# STL queue
```c++
#include
#include
using namespace std;
auto main()->int {
queue num……
优质题解
蓝桥杯基础练习VIP-阶乘计算(C++自定义函数解题)
摘要:代码解析:multiply 函数实现高精度乘法。它接受一个存储数字的向量 num 和一个因子 factor 作为参数,并返回乘法结果的向量 result。在 multiply 函数中,使用 carry……
3072: 括弧匹配检验
摘要:# 栈问题
> https://www.programmercarl.com/0020.%E6%9C%89%E6%95%88%E7%9A%84%E6%8B%AC%E5%8F%B7.html#%E8……
优质题解
杨辉三角(c++代码)
摘要:杨辉三角(在这里储存为直角正三角形)
> 1
> 1 1
> 1 **2 1**
> 1 3 **3** 1
> ……
看到这张图应该先想一下打印直角正三角形的代码
```cpp……
“扬灰(杨辉)”三角形
摘要:解题思路下一行的数等于上一行的数加上旁边的数。 注意事项:数组需要 long long 类型,不要在循环内输出,凡事要动脑筋!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!……
直方图(C++)简单解
摘要:参考代码:#include <iostream>#include <vector>#include <algorithm>using namespace std;int main() { int……