题解 2849: 石头剪子布

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

石头剪子布,硬解(doge)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    int n;    char a[10],b[10];    scan……

2849: 石头剪子布

摘要:```cpp #include using namespace std; int main() { int N; cin>>N; string str1,str2……

2849: 石头剪子布

摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() {     i……

字符串--4.石头剪刀布

摘要:解题思路: 用空格分离字符,想到用scanf("%s %s",a,b);注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { ……

函数+strcmp解决,含思路和知识点讲解

摘要:思路:①每一轮玩家1、2出拳,存放在S1、S2数组中; ②写一个game()函数代表每一轮剪刀石头布,并把结果存放到flag数组中; ③最后一并输出结果。 #include ……

28行代码解决

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() {    int n;    cin >> n;    int a[1……

分解问题,模拟

摘要:参考代码:#include<iostream> using namespace std;   int main() {   int n;     cin >> n;     string ……