1093: 字符逆序(C语言版) 摘要:**具体代码:** ```c #include #include int main() { char str[100]; gets(str); for (int i = strl…… 题解列表 2022年02月09日 0 点赞 0 评论 372 浏览 评分:0.0
1094: 字符串的输入输出处理 摘要:**解题思路:** 前面n个字符串原样输出,可能有空格,每次循环用gets()输入一串,用puts()输出一串 后面的字符串不带空格,选用scanf("%s")输入,遇到空格后,后面的内容在缓存区…… 题解列表 2022年02月09日 0 点赞 0 评论 382 浏览 评分:0.0
统计立方数(C++语言) 摘要:解题思路:将int范围内所有的立方数统计在一个数组里注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>#include<set…… 题解列表 2022年02月09日 0 点赞 0 评论 575 浏览 评分:0.0
Hifipsysta-2024-链表删除练习(C++代码) 摘要:```cpp #include using namespace std; struct node{ int data; node* next; }; node…… 题解列表 2022年02月09日 0 点赞 0 评论 407 浏览 评分:0.0
老王赛马(C++语言逐一比较) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>#include<set>#include<string>#inc…… 题解列表 2022年02月09日 0 点赞 0 评论 481 浏览 评分:0.0
超级楼梯(递归的是神,迭代的是人) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>#include<set>#include<string>#inc…… 题解列表 2022年02月09日 0 点赞 0 评论 448 浏览 评分:0.0
只ac一半,我不理解,不用string头文件 摘要:解题思路:遍历字符串注意事项:判断字符串结尾参考代码:#include <stdio.h>int main() { char a[10010]; gets(a); int s = 0, b = 0, …… 题解列表 2022年02月09日 0 点赞 0 评论 376 浏览 评分:0.0
连续自然数和(第一想法就是暴力解决) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>#include<set>#include<string>#inc…… 题解列表 2022年02月09日 0 点赞 0 评论 376 浏览 评分:0.0
取巧化数法 摘要:解题思路: 把单词化为数字存入数组注意事项:只是一种取巧的我自己想到的算法,有很大的漏洞,当实用于一般 的大多数情况参考代码:#include<stdio.h>int main(){ char s[…… 题解列表 2022年02月09日 0 点赞 0 评论 455 浏览 评分:0.0
编写题解 1996: 元素配对 摘要:思想: 将X、Y两个数据分别保存在两个列表s1、s2中 --> s1降序排序,s2升序排序 --> s1中最大的减最小的,最小的减最大的(即最大的数-最小的数的绝对值之和最大) ```python…… 题解列表 2022年02月09日 0 点赞 0 评论 366 浏览 评分:0.0