题解列表
编写题解 1502: 蓝桥杯算法提高VIP-利息计算
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>
using namespace std;
int main()
{
double val,x,total……
编写题解 1491: 蓝桥杯算法提高VIP-交换Easy
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
void print(int a[],int n)
{
for(int i……
1951: 求平方和
摘要:解题思路:很简单注意事项:很简单参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; ……
用函数的方法解决这个问题
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
void input(int data[]){
int i;
for(i=0;i<10;i++){
scanf("%d……
题目 1463: 蓝桥杯基础练习VIP-Sine之舞
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int n;int main(){ cin>>n; fo……
1095: The 3n + 1 problem
摘要:解题思路:用 while() 每次接收两个数,用 for() 对两个数间所有数进行遍历,并更新最大循环长度。注意事项:测试用例里面有 num1 > num2 的,一开始完全没意识到,卡了很久。参考代码……
优质题解
1094: 字符串的输入输出处理
摘要:解题思路:(1)带空格的要用 cin.getline() 接收输入,接收完就输出。(2)不带空格的直接用 cin 接收输入,接受完就输出。注意事项:输入完 N 后要用 getchar() 接收后面紧跟……
陶陶摘苹果(C++简单题解)
摘要:解题思路:用淘淘的身高加上板凳的高度,就是淘淘能够到的高度,再和苹果的高度进行判断累加,最后输出;注意事项:加上板凳的30;参考代码: #includeusing namespace std;int ……