2849: 石头剪子布(C语言) 摘要: #include #include//主函数中使用了strcmp函数 int main() { int N; scanf("%d",&N); for(int i=0;i…… 题解列表 2023年09月20日 0 点赞 0 评论 791 浏览 评分:0.0
石头剪子布(不难,就是麻烦) 摘要:解题关键: strcmp() 字符串比较函数 头文件为#include strcmp(s1,s2) 若s1==s2,则返回0 若s1>s2,则返回大于0的值 若s1…… 题解列表 2023年09月21日 0 点赞 0 评论 654 浏览 评分:0.0
c代码记录之石头剪子布 摘要: #include #include int cq(char str1[],char str2[]){ if((str1[0]=='R'&&st…… 题解列表 2023年11月29日 0 点赞 0 评论 558 浏览 评分:0.0
石头剪刀布硬解 摘要:解题思路:利用字符串的首元素字母,即是数组的首个元素注意事项:一局比完直接出结果,不是那种全部比完才输出参考代码:#include<stdio.h>#include<string.h>#include…… 题解列表 2024年11月07日 0 点赞 0 评论 689 浏览 评分:0.0
c语言string解法 摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[…… 题解列表 2024年11月20日 0 点赞 0 评论 885 浏览 评分:0.0
2025/8/11刷题记录 摘要:解题思路:strcmp比较两个字符串是否相等 相等输出0 s==“”这种写法不存在注意事项:参考代码:#include <stdio.h>#include <…… 题解列表 2025年08月11日 0 点赞 0 评论 417 浏览 评分:0.0
2849:石头剪刀布 解题思路:注意事项:参考代码:#includeintmain(){intn;scanf("%d",&n);charplayer1[20],player2[20];inti;for(i=0;i 题解列表 2025年10月31日 1 点赞 0 评论 524 浏览 评分:0.0 莉露编写题解 2849: 石头剪子布 解题思路:一看就知道注意事项:用scanf最方便判断时只看首字母即可。参考代码:#include#include#defineMAX101intmain(){intnum;scanf("%d",&num);chara[MAX], 题解列表 2026年02月12日 0 点赞 0 评论 515 浏览 评分:0.0 只比较首字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n ; scanf("%d&q…… 题解列表 2026年05月26日 0 点赞 0 评论 225 浏览 评分:0.0 我是硬解的废物 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,p1=0,p2=0; char s1[10],s2[…… 题解列表 2022年11月24日 0 点赞 0 评论 734 浏览 评分:7.3 « 12 »
莉露编写题解 2849: 石头剪子布 解题思路:一看就知道注意事项:用scanf最方便判断时只看首字母即可。参考代码:#include#include#defineMAX101intmain(){intnum;scanf("%d",&num);chara[MAX], 题解列表 2026年02月12日 0 点赞 0 评论 515 浏览 评分:0.0
只比较首字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n ; scanf("%d&q…… 题解列表 2026年05月26日 0 点赞 0 评论 225 浏览 评分:0.0
我是硬解的废物 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,p1=0,p2=0; char s1[10],s2[…… 题解列表 2022年11月24日 0 点赞 0 评论 734 浏览 评分:7.3