1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())if (a==0 and b==2) or (a==1 and b==0) or (a==2 and b==1):…… 题解列表 2023年01月21日 0 点赞 0 评论 99 浏览 评分:0.0
(C++)剪刀石头布(数组实现) 摘要:解题思路:二维数组存胜负平结果注意事项:参考代码:#include <iostream> using namespace std; int main() { int ap[3][3…… 题解列表 2023年01月01日 0 点赞 0 评论 135 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>enum jie {a=-1,b,c}; //对于b,c看自己 int main(){ int x,y;…… 题解列表 2022年12月20日 0 点赞 0 评论 76 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 c 摘要:解题思路:注意事项:参考代码:#include<stdio.h>enum play {a=-1,b,c};int main(){ enum play outcome; int p1,p2…… 题解列表 2022年12月11日 0 点赞 0 评论 153 浏览 评分:0.0
一种超简单标准的枚举方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ enum play{lose=-1,equality,win} result; int a,b; …… 题解列表 2022年12月02日 0 点赞 0 评论 95 浏览 评分:0.0
剪刀石头布 摘要:解题思路:注意事项:参考代码: enum GAME{stone,paper,scissor}game; int main(){ int player1, player2,result; scanf("…… 题解列表 2022年11月23日 0 点赞 0 评论 93 浏览 评分:0.0
剪刀石头布C++ 摘要:解题思路: 一一比较注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; cin >> a >> b…… 题解列表 2022年11月05日 0 点赞 0 评论 79 浏览 评分:0.0
明白题意写题解 摘要:注意事项: 要枚举的是游戏的结果,不是游戏方式。不要把石头剪刀布枚举出来。 只是要求用输入的0、1、2表示石头、布、剪刀。参 题解列表 2022年11月04日 0 点赞 0 评论 114 浏览 评分:0.0
剪刀石头布 摘要:解题思路:注意事项:参考代码:#include"stdio.h"enum leixing {shitou,bu,dao};enum shuying {shu=-1,ping,ying};int mai…… 题解列表 2022年06月23日 0 点赞 0 评论 803 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:解题思路:一个一个的去比。注意事项:千万不要打反了。参考代码:#include<iostream> using namespace std; int main() { int a,b;…… 题解列表 2022年05月21日 0 点赞 0 评论 216 浏览 评分:9.9