我只会堆史山代码,别的不会 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a,b;int main(){ enum GAME &…… 题解列表 2026年02月03日 0 点赞 0 评论 89 浏览 评分:0.0
无聊的星期五 摘要:解题思路:注意事项:#include <stdio.h> #include<stdlib.h> int main() { int x, y; scanf_s("%d %d", &x, &…… 题解列表 2024年12月27日 0 点赞 0 评论 644 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布题解(c语言)最快 摘要:解题思路:通过做差确定谁输谁赢注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(a=…… 题解列表 2024年03月16日 0 点赞 0 评论 576 浏览 评分:9.9
题解 1481剪刀石头布 摘要:解题思路:看到这个题目已知0代表石头,1代表布,2代表剪刀本题有三种结局1.甲胜乙负2.甲负乙胜3.平局第一种情况 甲出石头乙出剪刀甲出剪刀乙出布甲出布乙出石头第二种情况反之第三种情况 平局甲出石头乙…… 题解列表 2024年03月01日 0 点赞 1 评论 535 浏览 评分:6.0
蓝桥杯算法提高VIP-剪刀石头布(C语言) 摘要:解题思路:注意事项: 枚举函数:enum 1.如果枚举函数中没进行赋值,则第一个元素默认值为0,随后的值“加1”递增; & 题解列表 2024年02月07日 0 点赞 0 评论 461 浏览 评分:0.0
编写题解 1481: 蓝桥杯算法提高VIP-剪刀石头布(C语言)包含枚举的使用方法 摘要:### 关于枚举 - 枚举语法定义格式为: ```c enum 枚举名 {枚举元素1,枚举元素2,……}; ``` - 注意:第一个枚举成员的默认值为整型的 0,后续枚举成员的值在前一个成员…… 题解列表 2023年01月24日 1 点赞 4 评论 442 浏览 评分:9.9
蓝桥杯算法提高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 评论 278 浏览 评分: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 评论 389 浏览 评分:0.0
一种超简单标准的枚举方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ enum play{lose=-1,equality,win} result; int a,b; …… 题解列表 2022年12月02日 0 点赞 0 评论 313 浏览 评分:0.0
剪刀石头布 摘要:解题思路:注意事项:参考代码: enum GAME{stone,paper,scissor}game; int main(){ int player1, player2,result; scanf("…… 题解列表 2022年11月23日 0 点赞 0 评论 280 浏览 评分:0.0