蓝桥杯算法提高VIP-剪刀石头布 (Java代码) 摘要:解题思路:注意事项:参考代码: Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nex…… 题解列表 2018年01月22日 2 点赞 0 评论 794 浏览 评分:0.0
(C++)剪刀石头布(数组实现) 摘要:解题思路:二维数组存胜负平结果注意事项:参考代码:#include <iostream> using namespace std; int main() { int ap[3][3…… 题解列表 2023年01月01日 0 点赞 0 评论 135 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C语言描述,穷举法(大概比较笨的才能看懂!)) 摘要:解题思路: 规定用枚举(enum)石头剪刀布,emmm,想了一会,因为一共只会出现7种条件 &nbs 题解列表 2019年04月02日 0 点赞 0 评论 646 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布-题解(C语言代码) 摘要:解题思路:注意事项:不同的编译环境下有些支持汉字作为枚举的对象,但有些并不支持,此题就不支持参考代码:#include<stdio.h> enum three { fail= -1, draw…… 题解列表 2020年12月25日 0 点赞 0 评论 146 浏览 评分:0.0
剪刀石头布C++ 摘要:解题思路: 一一比较注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; cin >> a >> b…… 题解列表 2022年11月05日 0 点赞 0 评论 79 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 python 摘要:解题思路:基础if else语句注意事项:无参考代码:list1 = list(map(int,input().split())) if list1[0] == 0: if list1[1…… 题解列表 2021年04月20日 0 点赞 0 评论 242 浏览 评分:0.0
剪刀石头布 (C语言代码) 摘要:解题思路:利用减法,列举几种情况下的结果注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=a-b; i…… 题解列表 2017年10月06日 0 点赞 0 评论 922 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; scanf("%d%d",&…… 题解列表 2018年03月08日 0 点赞 0 评论 615 浏览 评分:0.0
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
蓝桥杯算法提高VIP-剪刀石头布-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int a,b; while(cin>>a>>b) …… 题解列表 2020年05月01日 0 点赞 0 评论 386 浏览 评分:0.0