编写题解 1009: [编程入门]数字的处理与判断【C++】 摘要:解题思路:这道题用数组做会方便一点。如果不想用数组做,就需要像下面这么麻烦。注意事项:建议还是学习用数组做参考代码:#include<iostream>using namespace std;int …… 题解列表 2021年04月01日 0 点赞 0 评论 258 浏览 评分:0.0
C++分段函数求值 摘要:解题思路:本题考查的是if条件语句,只需灵活运用if和else即可注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x; …… 题解列表 2021年04月01日 0 点赞 0 评论 503 浏览 评分:6.0
不同单词个数统计 摘要:```cpp 用二维数组储存数据 然后一个一个用长度进行比较找到最大长度单词的下标 输出即可 #include using namespace std; char a[5100][51…… 题解列表 2021年04月01日 0 点赞 0 评论 276 浏览 评分:0.0
不同单词个数统计 摘要:```cpp 使用二维数组记录单词 每输入一个单词就用这个单词和之前的单词比较如果相同就赋值为空 然后遍历一遍数组 记录为空的个数 然后输出总个数减去空的个数 #include using …… 题解列表 2021年04月01日 0 点赞 3 评论 563 浏览 评分:9.0
题解—涉及 利用string进行对数字的处理 摘要:### # 首先卖个广告,欢迎关注我的github账号 ##### peach99cpp,里面有个库存储了我的做题笔记和源代码,欢迎加入! #### 题解——关于string解决数字处理问题的…… 题解列表 2021年04月01日 0 点赞 3 评论 403 浏览 评分:9.9
字符串的输入输出处理-题解(C++代码) 摘要:``` #include #include #include #include using namespace std; int main(){ int N; cin>>N…… 题解列表 2021年04月01日 0 点赞 0 评论 1116 浏览 评分:9.0
没发现规律,直接遍历比较的。。。神奇的过了。。。 摘要: #include using namespace std; int main(){ string s1, s2; cin >…… 题解列表 2021年03月31日 0 点赞 0 评论 324 浏览 评分:0.0
蓝桥杯算法提高VIP-删除数组中的0元素 摘要: #include using namespace std; int CompactIntegers(int nums[],int n) { in…… 题解列表 2021年03月31日 0 点赞 0 评论 237 浏览 评分:0.0
知道解法的我觉得。。。 摘要:```cpp #include using namespace std; int main() { int N; cin>>N; int f1 = 1; int f2 …… 题解列表 2021年03月31日 0 点赞 0 评论 547 浏览 评分:0.0
一点代码注释 摘要:```cpp #include #include #include using namespace std; int main() { int N; cin>>N; int d…… 题解列表 2021年03月31日 0 点赞 0 评论 381 浏览 评分:0.0