题解 2849: 石头剪子布

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

筛选

石头剪子布(不难,就是麻烦)

摘要:解题关键: strcmp() 字符串比较函数 头文件为#include strcmp(s1,s2) 若s1==s2,则返回0 若s1>s2,则返回大于0的值 若s1……

我是硬解的废物Two

摘要:解题思路:暴力注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ int N; cin>>N; st……

2849: 石头剪子布

摘要:``` #include using namespace std; const int N=110; int main(){ int T; cin>>T; while(T--){ ……

我是硬解的废物

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

编写题解 2849: 石头剪子布

摘要:解题思路:注意事项:参考代码:ls=["Rock", "Scissors", "Paper"] #选择 def judge(S1,S2):     if S1==S2: #平局         ……
优质题解

石头剪子布(分解String)

摘要:解题思路:注意事项:问:为什么playgame函数必须加上static?答:`playGame` 函数在这里被声明为 `static`,是因为它被直接从 `main` 方法内部调用,而 `main` ……

28行代码解决

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

石头剪子布,硬解(doge)

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