编写题解 1547: 蓝桥杯算法提高VIP-理财计划(floor向下取整)
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
……
蓝桥杯算法提高VIP-理财计划 题解(c++超级的。。。。。)
摘要:解题思路:就看你对题目的理解能力啦!没什么!上程序!(说实话,我觉得这题目有点古怪,有这样算利益的吗!)(我也去银行看看!)注意事项:无。参考代码:#include<bits/stdc++.h>usi……
不能四舍五入,所以要用点小技巧
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,t; double m; cin >> n >>……
蓝桥杯算法提高VIP-理财计划(这题坑还挺多的,最后的值不能四舍五入)
摘要:解题思路:题目好像没有要求要保留两位小数,但测试要求是,浮点类型转换为整型是不会四舍五入的注意事项:参考代码:#include<stdio.h>
int main()
{
int k,n;
……
小白,看看就行,不动脑袋
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ int k, n; dou……
理财计划 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<math.h>
int main(){
double a,b,sum=0;
int i,n;
sca……