2849: 石头剪子布(C语言) 摘要: #include #include//主函数中使用了strcmp函数 int main() { int N; scanf("%d",&N); for(int i=0;i…… 题解列表 2023年09月20日 0 点赞 0 评论 333 浏览 评分:0.0
石头剪子布(不难,就是麻烦) 摘要:解题关键: strcmp() 字符串比较函数 头文件为#include strcmp(s1,s2) 若s1==s2,则返回0 若s1>s2,则返回大于0的值 若s1…… 题解列表 2023年09月21日 0 点赞 0 评论 267 浏览 评分:0.0
c代码记录之石头剪子布 摘要: #include #include int cq(char str1[],char str2[]){ if((str1[0]=='R'&&st…… 题解列表 2023年11月29日 0 点赞 0 评论 213 浏览 评分:0.0
石头剪刀布硬解 摘要:解题思路:利用字符串的首元素字母,即是数组的首个元素注意事项:一局比完直接出结果,不是那种全部比完才输出参考代码:#include<stdio.h>#include<string.h>#include…… 题解列表 2024年11月07日 0 点赞 0 评论 258 浏览 评分:0.0
c语言string解法 摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[…… 题解列表 2024年11月20日 0 点赞 0 评论 423 浏览 评分: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 评论 389 浏览 评分:7.3
石头剪子布,硬解(doge) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; char a[10],b[10]; scan…… 题解列表 2022年12月24日 1 点赞 0 评论 936 浏览 评分:9.9
石头剪子布(利用strcmp函数) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>//建立结构体struct play{ char p1[100];//玩家1 char p2[100…… 题解列表 2023年02月07日 0 点赞 0 评论 567 浏览 评分:9.9
2849: 石头剪子布 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() { i…… 题解列表 2023年03月05日 0 点赞 0 评论 396 浏览 评分:9.9
字符串--4.石头剪刀布 摘要:解题思路: 用空格分离字符,想到用scanf("%s %s",a,b);注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { …… 题解列表 2023年03月24日 2 点赞 1 评论 362 浏览 评分:9.9