LikeWater - 1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:####有趣的代码,写起来很有意思,enum类型我比较少用,但是用来写一些小游戏还是挺有趣的,写起来就像真的再写一款很有趣的游戏一样,哈哈哈哈! ```cpp #include using …… 题解列表 2023年02月27日 0 点赞 1 评论 219 浏览 评分:9.9
石头剪刀布python程序写法 摘要:解题思路:a,b=map(int,input().split())if a==b: print("0")elif a>b: if a==2 and b==0: print("…… 题解列表 2023年10月15日 0 点赞 0 评论 311 浏览 评分:9.9
蓝桥杯算法提高VIP-剪刀石头布题解(c语言)最快 摘要:解题思路:通过做差确定谁输谁赢注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(a=…… 题解列表 2024年03月16日 0 点赞 0 评论 330 浏览 评分:9.9
好笨的方法,哈哈哈,编写程序实现“剪刀,石头,布”游戏。 摘要:解题思路:输入,然后通过选择得出结果,最后输出注意事项:在赋值的时候,因为是枚举类型,所以不可以使用cin输入参考代码:#include#include #include typedef enum G…… 题解列表 2024年06月20日 0 点赞 0 评论 363 浏览 评分:9.9