ISBN码(常规方法) 摘要:解题思路:注意事项:注意输入情况还有个最后一位是X的情况,没考虑到只有82分参考代码:变量设的有点多,可能有些难看懂#include<stdio.h> #include<string.h> int…… 题解列表 2024年11月13日 0 点赞 0 评论 318 浏览 评分:0.0
行程长度编码(一个for完美解决) 摘要:解题思路:将每个字符存入字符数组,然后从头开始检查每个字符重复次数注意事项:该解法每轮检查会让首元素与自身比较,所以连续长度len得初始化为0;注意最后一次比较得让结果打印出来,利用'\0&#…… 题解列表 2024年11月13日 0 点赞 0 评论 233 浏览 评分:0.0
回文串(回文串特点解法) 摘要:解题思路:知道回文串首尾相同的特点就很好解决。注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char srr[…… 题解列表 2024年11月13日 0 点赞 0 评论 231 浏览 评分:0.0
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string s, s2; …… 题解列表 2024年11月13日 0 点赞 0 评论 215 浏览 评分:0.0
2874: 行程长度编码(暴力) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char a[1001]; f…… 题解列表 2024年11月13日 0 点赞 0 评论 182 浏览 评分:0.0
1200: 回文串(详细简单暴力解) 摘要:#include #include int main() { char a[256]; fgets(a, sizeof(a), stdin); // 去除fge…… 题解列表 2024年11月13日 0 点赞 0 评论 357 浏览 评分:0.0
用C语言的递归函数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>long long ww(int M, int N); // 指定返回类型为 long longint main() { int…… 题解列表 2024年11月13日 1 点赞 0 评论 479 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,i,s1=0,s2=0; double c,s3=0…… 题解列表 2024年11月13日 0 点赞 0 评论 559 浏览 评分:0.0
加工生产调度 摘要: //这类生产加工题型记住了 #include using namespace std; const int N=10001; struct node{…… 题解列表 2024年11月13日 0 点赞 0 评论 277 浏览 评分:0.0
代码如下: 摘要:解题思路: 太简单了注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main() { string s; int…… 题解列表 2024年11月13日 0 点赞 0 评论 225 浏览 评分:0.0