蓝桥杯算法提高VIP-剪刀石头布 (C++代码) 摘要:#include<iostream> using namespace std; int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2017年12月16日 1 点赞 0 评论 751 浏览 评分:0.0
(C++)剪刀石头布(数组实现) 摘要:解题思路:二维数组存胜负平结果注意事项:参考代码:#include <iostream> using namespace std; int main() { int ap[3][3…… 题解列表 2023年01月01日 0 点赞 0 评论 173 浏览 评分:0.0
剪刀石头布C++ 摘要:解题思路: 一一比较注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; cin >> a >> b…… 题解列表 2022年11月05日 0 点赞 0 评论 110 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 c++(还算简单啦) 摘要:解题思路:不就是直接硬打吗?上简单程序!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ sc…… 题解列表 2022年05月11日 0 点赞 0 评论 185 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:解题思路: 本题一次过 1.善于发现规律注意事项:参考代码:#include<iostream> using namespace std; int main(){ int a…… 题解列表 2022年01月14日 0 点赞 0 评论 343 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:#include<bits/stdc++.h> using namespace std; int main(){ enum game {shitou = 0,bu = 1,jian…… 题解列表 2021年12月17日 0 点赞 0 评论 195 浏览 评分:0.0
看到有些解题去一一对比,其实不用那么麻烦,相减就能定胜负了 摘要:解题思路: 0表示石头,1表示布,2表示剪刀,胜负可以用相减来确定,比对方大1,或者比对方小2为胜,相同为平,否则为负注意事项: 题目明确了,枚举用在选择结构和输出中,不是用来定义石剪布的。参考代码…… 题解列表 2021年09月17日 0 点赞 0 评论 155 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布-题解(C++代码)超级简短代码- 摘要:解题思路:相邻数字之间手势i总是比i+1对应大,i总是比i+2小。注意事项:代码中if条件注意别写错。参考代码:#include<iostream>using namespace std;int ma…… 题解列表 2020年11月08日 0 点赞 0 评论 336 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int a,b; while(cin>>a>>b) …… 题解列表 2020年05月01日 0 点赞 0 评论 476 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布-题解(C++代码) 摘要:解题思路:这个是最直接最先想到也是最笨的思路了,对每个情况逐一枚举,当然你也可以稍微改进一下代码。 ```cpp #include using namespace std; int m…… 题解列表 2020年02月27日 0 点赞 0 评论 309 浏览 评分:0.0