石头剪刀布 简单易懂(来个五星兄弟们)!!!! 摘要:解题思路:石头剪刀布的长度不同 所以用strlen 区分注意事项:简单易懂兄弟们 不懂可以私信我参考代码:#include<stdio.h>#include<string.h>int main(voi…… 题解列表 2023年10月22日 0 点赞 0 评论 443 浏览 评分:10.0
石头剪刀布 摘要:解题思路:注意事项:参考代码:ls=["Rock", "Scissors", "Paper"]a=b=0x=0f=[]N = int(input())for i in range(N): a,b = …… 题解列表 2023年10月23日 0 点赞 0 评论 477 浏览 评分:9.9
12行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:n=int(input())def rule(p1,p2): if p1==p2: return "Tie" elif (p1=="Scisso…… 题解列表 2024年07月25日 0 点赞 0 评论 600 浏览 评分:9.9
28行代码解决 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int n; cin >> n; int a[1…… 题解列表 2024年01月08日 0 点赞 0 评论 532 浏览 评分:9.9
分解问题,模拟 摘要:参考代码:#include<iostream> using namespace std; int main() { int n; cin >> n; string …… 题解列表 2023年12月31日 0 点赞 0 评论 456 浏览 评分:9.9
2849: 石头剪子布 摘要:``` #include using namespace std; const int N=110; int a[N],b[N]; int main(){ int T; cin>>…… 题解列表 2023年12月18日 0 点赞 0 评论 279 浏览 评分:9.9
石头剪子布 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): c = list(map(str,input().split())) if c[0]==…… 题解列表 2023年11月28日 0 点赞 0 评论 609 浏览 评分:9.9
函数+strcmp解决,含思路和知识点讲解 摘要:思路:①每一轮玩家1、2出拳,存放在S1、S2数组中; ②写一个game()函数代表每一轮剪刀石头布,并把结果存放到flag数组中; ③最后一并输出结果。 #include …… 题解列表 2023年09月04日 0 点赞 1 评论 438 浏览 评分:9.9
2849: 石头剪子布 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() { i…… 题解列表 2023年03月05日 0 点赞 0 评论 492 浏览 评分:9.9
石头剪子布(利用strcmp函数) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>//建立结构体struct play{ char p1[100];//玩家1 char p2[100…… 题解列表 2023年02月07日 0 点赞 1 评论 675 浏览 评分:9.9