有错误请指出 摘要:解题思路:提前将收入定义为浮点型,方便后面计算注意事项:参考代码:#include <stdio.h>int main(){ int r,y; float m; scanf("%d %f %d",&r…… 题解列表 2022年12月21日 0 点赞 0 评论 817 浏览 评分:9.9
2807:****(标题有敏感词) 摘要:解题思路:注意事项:参考代码:r,m,y = map(int,input().split())r = r * 0.01for i in range(0,y): m += m * rprint(i…… 题解列表 2023年02月07日 0 点赞 1 评论 723 浏览 评分:4.0
给用Java的开一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年04月16日 0 点赞 0 评论 632 浏览 评分:0.0
简单又实用 ```cpp#include#include//包含cmath头文件来使用pow函数usingnamespacestd;intmain(){intR,M,Y;cin>>R>>M>>Y;doublefinal_value=M*pow(1+R/100.0,Y);cout 题解列表 2023年07月12日 0 点赞 0 评论 915 浏览 评分:9.9
题解 2807 YHLX 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ int R, Y; long int M; scanf("%…… 题解列表 2023年08月17日 0 点赞 0 评论 676 浏览 评分:6.0
这个题题目是敏感词汇(注意变量类型) 注意事项:%0.0lf会对浮点数四舍五入%0.0f会直接舍弃小数部分%d输出浮点类型可能会出错参考代码:```c#includeintmain(){inty;doublem,r;scanf("%lf%lf%d",&r,&m,&y);for(inti=0;i 题解列表 2023年09月08日 0 点赞 0 评论 531 浏览 评分:0.0
for循环c语言版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int Y; float M,R; scanf("%f %f %d",&R,&M,&Y); …… 题解列表 2023年11月04日 0 点赞 0 评论 545 浏览 评分:0.0
2807: C++解题 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai…… 题解列表 2023年11月17日 0 点赞 0 评论 591 浏览 评分:2.0
很好理解,注意变量 摘要:解题思路:注意事项:%.0lf,会四舍五入参考代码:#include<stdio.h>int main(){ int y; double m,r; scanf("%lf%lf%d",…… 题解列表 2023年11月26日 0 点赞 0 评论 795 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月11日 0 点赞 0 评论 546 浏览 评分:9.9