字符串的输入输出处理-题解(C++代码)------笔记(注意细节) 摘要:解题思路:细节细节细节!!!(换行个数)注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n…… 题解列表 2020年07月24日 0 点赞 4 评论 2373 浏览 评分:9.5
蓝桥杯算法提高VIP-理财计划-题解(C++代码) 摘要:解题思路: 每月都要往里存钱,无法用复利计算公式,只能循环。注意事项: 输出两位小数,不能四舍五入参考代码:#include<bits/stdc++.h> using namespace…… 题解列表 2020年08月02日 0 点赞 0 评论 1357 浏览 评分:9.5
字符串的查找删除-题解(C语言代码) 摘要:解题思路:1.输入:第一行为短字符串(不含空格),可以利用scanf("%s")输入,区别一下gets和scanf;接下来,就是要输入若干字符串,(此时的字符串可能含有空格)可以通过while(get…… 题解列表 2020年08月05日 0 点赞 0 评论 1595 浏览 评分:9.5
蓝桥杯算法提高VIP-模拟计算器-题解(C语言代码) 摘要:题目:使用Switch语句编写一个模拟简单计算器的程序。依次输入两个整数和一个字符,并用空格隔开。如果该字 符是一个“+”,则打印和;如果该字符是一个“-”,则打印差;如果该字符是一个“*”,则打印…… 题解列表 2020年08月06日 0 点赞 2 评论 1362 浏览 评分:9.5
[编程入门]筛选N以内的素数-题解(C语言代码) 摘要:解题思路:这道题解法呢,首先我们要进行两次循环,内层用于判断数字是否为素数,外层来为内层提供数字,懂吧,不懂来看代码吧注意事项:无参考代码#include <stdio.h>int main() { …… 题解列表 2020年08月12日 0 点赞 2 评论 1566 浏览 评分:9.5
P1050-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int dp[2002][2002]={0};//dp…… 题解列表 2020年08月18日 0 点赞 0 评论 888 浏览 评分:9.5
蓝桥杯历届试题-回文数字-题解(C++代码)详细注释 摘要:解题思路: 遍历10000 - 1000000,当这个数是回文数并且各个位数之和为n,输出 并标记, 如果没被标记,输出-1注意事项:参考代码:#include <bits/stdc++.…… 题解列表 2020年08月22日 0 点赞 1 评论 1136 浏览 评分:9.5
[递归]母牛的故事-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int ageMap[58]; //定义一个缓存用于存储已经计算过的值了long lon…… 题解列表 2020年08月23日 0 点赞 0 评论 872 浏览 评分:9.5
汽水瓶-题解(C++代码) 摘要:```cpp #include using namespace std ; int a[10] ; int f(int x) { int n, m = 0, sum = 0 ; wh…… 题解列表 2020年08月24日 0 点赞 0 评论 553 浏览 评分:9.5
求平方和-题解(C语言代码) 摘要:解题思路:平方可想到用这2种方法:直接计算平方或用pow()函数注意事项:如果用pow()记得加入头文件math.h,但该题直接计算即可。参考代码:#include<stdio.h>int main(…… 题解列表 2020年08月28日 0 点赞 0 评论 1214 浏览 评分:9.5