2877: 同行列对角线的格子(有点麻烦,但非常好使) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std ; int a[100][100] ; int b[100][100] ;…… 题解列表 2023年07月18日 0 点赞 0 评论 596 浏览 评分:9.9
C语言解全排列 摘要:解题思路:注意事项:两种代码,第二种交换的代码由于最终打印顺序不同通过不了此题参考代码:#include <stdio.h>#include <string.h>#include <stdbool.h…… 题解列表 2023年07月19日 0 点赞 0 评论 876 浏览 评分:9.9
矩阵交换行(C++)简单实现 摘要:参考代码:#include <iostream>using namespace std;int main() { int matrix[5][5]; // 5x5矩阵 // 输入矩阵 …… 题解列表 2023年07月19日 0 点赞 0 评论 621 浏览 评分:9.9
回文串(C++)简单易懂 摘要:参考代码:#include <iostream>#include <string>using namespace std;bool isPalindrome(string str) { int …… 题解列表 2023年07月19日 0 点赞 0 评论 405 浏览 评分:9.9
直方图(C++)简单解 摘要:参考代码:#include <iostream>#include <vector>#include <algorithm>using namespace std;int main() { int…… 题解列表 2023年07月19日 0 点赞 2 评论 250 浏览 评分:9.9
优质题解 蓝桥杯基础练习VIP-阶乘计算(C++自定义函数解题) 摘要:代码解析:multiply 函数实现高精度乘法。它接受一个存储数字的向量 num 和一个因子 factor 作为参数,并返回乘法结果的向量 result。在 multiply 函数中,使用 carry…… 题解列表 2023年07月19日 0 点赞 0 评论 710 浏览 评分:9.9
石头剪刀布 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 实时预览、全屏显示 ![…… 题解列表 2023年07月19日 0 点赞 0 评论 347 浏览 评分:9.9
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int n,nb,na,a[10000000],b[10000000],s…… 题解列表 2023年07月19日 0 点赞 0 评论 284 浏览 评分:9.9
石头剪刀布(微详细) 摘要:“石头剪刀布”#include <bits/stdc++.h> using namespace std; int main() { int N,NA,NB,a[10000]…… 题解列表 2023年07月19日 0 点赞 0 评论 220 浏览 评分:9.9
题解 2839: 石头剪刀布 摘要:先仔细读题,理解题目的含义石头剪刀布是常见的猜拳游戏。石头胜剪刀,剪刀胜布,布胜石头。如果两个人出拳一样,则不分胜负。一天,小A和小B正好在玩石头剪刀布。已知他们的出拳都是有周期性规律的,比如:“石头…… 题解列表 2023年07月19日 2 点赞 0 评论 852 浏览 评分:9.9