石头剪刀布 #MarkDown编辑器基本使用说明**如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。**##实时预览、全屏显示**编辑器左边是输入框, 题解列表 2023年07月19日 0 点赞 0 评论 634 浏览 评分:9.9
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int n,nb,na,a[10000000],b[10000000],s…… 题解列表 2023年07月19日 0 点赞 0 评论 519 浏览 评分:9.9
石头剪刀布(微详细) 摘要:“石头剪刀布”#include <bits/stdc++.h> using namespace std; int main() { int N,NA,NB,a[10000]…… 题解列表 2023年07月19日 0 点赞 0 评论 582 浏览 评分:9.9
题解 2839: 石头剪刀布 摘要:先仔细读题,理解题目的含义石头剪刀布是常见的猜拳游戏。石头胜剪刀,剪刀胜布,布胜石头。如果两个人出拳一样,则不分胜负。一天,小A和小B正好在玩石头剪刀布。已知他们的出拳都是有周期性规律的,比如:“石头…… 题解列表 2023年07月19日 2 点赞 0 评论 1385 浏览 评分:9.9
分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x,a; cin >> x; w…… 题解列表 2023年07月20日 0 点赞 0 评论 470 浏览 评分:9.9
整数去重:vector 摘要:```cpp #include using namespace std; int vis[105]={0};//标记输入是否有重复 int main() { int n; cin>>n;…… 题解列表 2023年07月20日 0 点赞 0 评论 874 浏览 评分:9.9
数据结构-最小生成树(C++详细解题) 摘要:#### 普利姆(Prim)算法原理: 1. 算法开始时选择一个起始点作为最小生成树的根节点,并将其加入最小生成树中。 3. 对于还未加入最小生成树的顶点,维护一个距离集合(在Prim’s算法中用…… 题解列表 2023年07月20日 0 点赞 0 评论 911 浏览 评分:9.9
计算马鞍点 ###*三重循环预警!*```cpp#includeusingnamespacestd;longlonga[100][100];///定义数组```先进行数组的定义```cppintmain(){for(inti=1;ia[i][j];///输入格式}}```本题需要的输入格式```cppfor(in 题解列表 2023年07月20日 1 点赞 0 评论 889 浏览 评分:9.9
2996: 古代密码 ```cpp#include#include#include#defineMAXA200usingnamespacestd;chara[MAXA],b[MAXA];intref[MAXA],bref[MAXA],k;intmain(){cin>>a>>b;for(inti=0;i 题解列表 2023年07月20日 2 点赞 3 评论 748 浏览 评分:9.9
二维数组示例 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100][100];int main(){ int n,m; …… 题解列表 2023年07月20日 0 点赞 0 评论 548 浏览 评分:9.9