剪刀石头布 (C语言代码) 摘要:解题思路:利用减法,列举几种情况下的结果注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=a-b; i…… 题解列表 2017年10月06日 0 点赞 0 评论 969 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C++代码) 摘要:#include<iostream> using namespace std; int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2017年12月16日 1 点赞 0 评论 750 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (Java代码) 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) {…… 题解列表 2018年01月09日 0 点赞 0 评论 747 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,result; scanf("%d %d",&m,&n); if(m==n) result=0;…… 题解列表 2018年01月13日 1 点赞 0 评论 1051 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (Java代码) 摘要:解题思路:注意事项:参考代码: Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nex…… 题解列表 2018年01月22日 2 点赞 0 评论 835 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C++代码) 摘要:解题思路:按顺序将每种情况都列出来:1 剪刀 布;2 剪刀 石头;3 剪刀 剪刀;4 布 石头;5 布 剪刀;6 布 布;7 石头 剪刀 8 石头 布 9 石头 石头注意事项:要注意顺序,前面的大于后…… 题解列表 2018年03月04日 0 点赞 0 评论 934 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; scanf("%d%d",&…… 题解列表 2018年03月08日 0 点赞 0 评论 684 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>enum game {stone, cloth, scissors};int main(void){ enum game hand1, …… 题解列表 2019年02月17日 0 点赞 0 评论 395 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int i,j; //输入的两个数 enum game{shi=0,bu=1,jian=2}; e…… 题解列表 2019年03月16日 0 点赞 0 评论 374 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef enum _peak{stone,cloth,scissor} peak;typedef enum _result{wi…… 题解列表 2019年04月02日 0 点赞 0 评论 817 浏览 评分:0.0