2025/8/11刷题记录 摘要:解题思路:strcmp比较两个字符串是否相等 相等输出0 s==“”这种写法不存在注意事项:参考代码:#include <stdio.h>#include <…… 题解列表 2025年08月11日 0 点赞 0 评论 322 浏览 评分:0.0
2849:石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); char player1[…… 题解列表 2025年10月31日 1 点赞 0 评论 407 浏览 评分:0.0
使用字典 win_rules 存储获胜规则且可扩展 摘要:def judge_game(player1_choice, player2_choice): """ 判断石头剪子布…… 题解列表 2025年11月02日 0 点赞 0 评论 312 浏览 评分:0.0
莉露编写题解 2849: 石头剪子布 摘要:解题思路:一看就知道注意事项:用scanf最方便判断时只看首字母即可。参考代码:#include<stdio.h>#include<string.h>#define MAX 1…… 题解列表 2026年02月12日 0 点赞 0 评论 414 浏览 评分:0.0
我是硬解的废物Two 摘要:解题思路:暴力注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ int N; cin>>N; st…… 题解列表 2022年12月08日 0 点赞 0 评论 454 浏览 评分:0.0
题解 2849: 石头剪子布 摘要: #include using namespace std; const int N=110; int a[N][N],sum; int main() {…… 题解列表 2023年12月18日 0 点赞 0 评论 437 浏览 评分:2.0
2849: 石头剪子布 摘要:``` #include using namespace std; const int N=110; int main(){ int T; cin>>T; while(T--){ …… 题解列表 2023年12月18日 0 点赞 0 评论 560 浏览 评分:2.0
我是硬解的废物 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,p1=0,p2=0; char s1[10],s2[…… 题解列表 2022年11月24日 0 点赞 0 评论 634 浏览 评分:7.3
编写题解 2849: 石头剪子布 摘要:解题思路:注意事项:参考代码:ls=["Rock", "Scissors", "Paper"] #选择 def judge(S1,S2): if S1==S2: #平局 …… 题解列表 2022年10月28日 0 点赞 0 评论 900 浏览 评分:7.7
优质题解 石头剪子布(分解String) 摘要:解题思路:注意事项:问:为什么playgame函数必须加上static?答:`playGame` 函数在这里被声明为 `static`,是因为它被直接从 `main` 方法内部调用,而 `main` …… 题解列表 2023年11月02日 1 点赞 0 评论 1224 浏览 评分:9.3