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