1481: 蓝桥杯算法提高VIP-剪刀石头布(简单写法C语言) 摘要:```c #include void main() { enum play {stone,cloth,scissors}; int a, b; scanf("%d …… 题解列表 2022年02月12日 0 点赞 0 评论 114 浏览 评分:0.0
题解 1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:解题思路:注意事项:1.case后面的数字不需要单引号参考代码:#include<stdio.h> int main() { int i,j; scanf("%d %d",&i…… 题解列表 2022年02月23日 0 点赞 0 评论 92 浏览 评分:0.0
题解 1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())sum=str(a)+str(b)s=int(sum)str1=[2,21,10]str2=[20,12,1]st…… 题解列表 2022年03月22日 0 点赞 0 评论 314 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 c++(还算简单啦) 摘要:解题思路:不就是直接硬打吗?上简单程序!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ sc…… 题解列表 2022年05月11日 0 点赞 0 评论 158 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:解题思路:一个一个的去比。注意事项:千万不要打反了。参考代码:#include<iostream> using namespace std; int main() { int a,b;…… 题解列表 2022年05月21日 0 点赞 0 评论 217 浏览 评分:9.9
剪刀石头布 摘要:解题思路:注意事项:参考代码:#include"stdio.h"enum leixing {shitou,bu,dao};enum shuying {shu=-1,ping,ying};int mai…… 题解列表 2022年06月23日 0 点赞 0 评论 803 浏览 评分:0.0
明白题意写题解 摘要:注意事项: 要枚举的是游戏的结果,不是游戏方式。不要把石头剪刀布枚举出来。 只是要求用输入的0、1、2表示石头、布、剪刀。参 题解列表 2022年11月04日 0 点赞 0 评论 114 浏览 评分:0.0
剪刀石头布C++ 摘要:解题思路: 一一比较注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; cin >> a >> b…… 题解列表 2022年11月05日 0 点赞 0 评论 79 浏览 评分:0.0
剪刀石头布 摘要:解题思路:注意事项:参考代码: enum GAME{stone,paper,scissor}game; int main(){ int player1, player2,result; scanf("…… 题解列表 2022年11月23日 0 点赞 0 评论 94 浏览 评分: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