字符串分类统计C++ 摘要:解题思路:采用for循环输入,用gets而不用cin可以 输入空格注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ in…… 题解列表 2023年03月22日 0 点赞 0 评论 178 浏览 评分:0.0
LikeWater - 1094: 字符串的输入输出处理 摘要:```cpp #include #include using namespace std; int main(){ int N; string str; cin>>N; g…… 题解列表 2023年03月22日 0 点赞 0 评论 195 浏览 评分:0.0
求和训练C++ 摘要:解题思路:采用多重for循环进行三次循环相加注意事项:结尾输出必须采用精确小数点函数,否则会因为float限制而造成输出一位小数参考代码:#include<bits/stdc++.h>using na…… 题解列表 2023年03月22日 0 点赞 0 评论 195 浏览 评分:0.0
大数整除:竖式法计算 摘要:  #include #include #include …… 题解列表 2023年03月22日 0 点赞 0 评论 216 浏览 评分:0.0
LikeWater - 1095: The 3n + 1 problem 摘要:#####这题挺搞心态的,题目样例全是a小于b结果提交测试里面会有a大于b的情况,然后导致出错,要是有执拗的人不想看题解真要被折磨半天,题目应该提示一下,不然很烦。 ```cpp #inclu…… 题解列表 2023年03月22日 0 点赞 0 评论 397 浏览 评分:0.0
记忆化搜索(Python题解) 摘要:解题思路:注意事项:参考代码:def dfs(n,step): for i in range(n//2+1): if exist[i]: # 存在直接用 ta…… 题解列表 2023年03月22日 0 点赞 0 评论 496 浏览 评分:0.0
求最大公约数和最小公倍数的最简逻辑!! 摘要:解题思路:之前做同样的题学到的,当时被震惊到了注意事项:参考代码:def func(a,b): s = a*b while a%b != 0: a,b=b,a%b pr…… 题解列表 2023年03月22日 0 点赞 0 评论 137 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:在这个示例代码中,我们使用函数来分别读入数字n、一行字符串和数字m。 然后,我们使用函数将从第个字符开始的子串打印出来,并输出结果。scanfprintfm需要注意的是,在函数中,…… 题解列表 2023年03月22日 0 点赞 0 评论 170 浏览 评分:0.0
输入输出--1.格式控制 摘要:注意事项: 右对齐:%5d:---20 ; 左对齐:%-5d: 20--- 。参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%…… 题解列表 2023年03月23日 0 点赞 0 评论 347 浏览 评分:0.0
输入输出--2.单精度控制 摘要:解题思路: 单精度浮点数float参考代码:}#include<stdio.h>int main(){ float a;//单精度浮点数float; scanf("%f",&a); printf("%…… 题解列表 2023年03月23日 0 点赞 0 评论 172 浏览 评分:0.0