C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:较长的字符串减去共有的字符就为答案!!!注意事项:参考代码:#include <stdio.h>#include <string.h>#include <math.h>int main ()…… 题解列表 2023年10月15日 1 点赞 1 评论 661 浏览 评分:10.0
1979: 求平均工资 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int n; …… 题解列表 2023年10月17日 1 点赞 0 评论 582 浏览 评分:10.0
石头剪刀布 简单易懂(来个五星兄弟们)!!!! 摘要:解题思路:石头剪刀布的长度不同 所以用strlen 区分注意事项:简单易懂兄弟们 不懂可以私信我参考代码:#include<stdio.h>#include<string.h>int main(voi…… 题解列表 2023年10月22日 1 点赞 0 评论 748 浏览 评分:10.0
字符串比较 摘要:解题思路:比较字符串,并不是比较字符串的总ASCII值谁的大,而是按字符串顺序,比较每个字符,若有字符大于另一字符串中相比的字符,则判定为此字符串大于另一字符串注意事项:参考代码:#include<s…… 题解列表 2023年10月25日 2 点赞 0 评论 748 浏览 评分:10.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,m,num=0; int a[1000]; scanf ("%d",&n); …… 题解列表 2023年10月25日 1 点赞 0 评论 535 浏览 评分:10.0
相对简单一点 摘要:```cpp #include using namespace std; int a[10][10]; int main() { int n; while (cin >> n){ …… 题解列表 2023年10月27日 0 点赞 1 评论 576 浏览 评分:10.0
计算输入数据的和与乘积(用char数组存) 参考代码:```c#include#includeintmain(){chara[100];gets(a);intlen=strlen(a);intsum=0,product=1;for(inti=0;i 题解列表 2023年10月28日 0 点赞 0 评论 653 浏览 评分:10.0
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int Weishu(int n)//判断位数{ int i = 0; while (n …… 题解列表 2023年10月31日 0 点赞 0 评论 652 浏览 评分:10.0
蓝桥杯算法训练-数据交换 参考代码:```c#includevoidswap(int*x,int*y){intt=*x;*x=*y;*y=t;}intmain(){intx,y;scanf("%d%d",&x,&y);swap(&x,&y);printf("%d%d",x,y);return0;}``` 题解列表 2023年10月31日 0 点赞 0 评论 551 浏览 评分:10.0
蓝桥杯算法提高VIP-淘淘的名单(分别用两个字符数组存题目给的要比对的字符串) 摘要:参考代码: ```c #include #include int main() { int n; scanf("%d",&n); char a[7][100]={"WYS","C…… 题解列表 2023年11月03日 1 点赞 0 评论 564 浏览 评分:10.0