利润提成(c语言) 解题思路:基本属于一个分段函数,一定要明确到底该交多少钱,说不定算着算着偷税漏税的钱就够给你关起来了QAQ嘿嘿注意事项:思路清晰反复验证可以大大降低错误率,没有人刚开始就很厉害,一定要有耐心参考代码: 题解列表 2021年11月27日 0 点赞 0 评论 571 浏览 评分:0.0
利润计算 -编译通过无误 摘要:解题思路:按照题目意思逐步写代码即可注意事项:参考代码:#include<stdio.h>int main(){ int n,m;//n为利润,m为应发奖金 scanf("%d",&n); if(n<…… 题解列表 2021年11月28日 0 点赞 0 评论 633 浏览 评分:0.0
【递归解决】利润计算 摘要:解题思路:递归调用注意事项:有点硬参考代码:int f(int a)//递归调用{ if(a<=100000) return a*0.1; else if(a>100000 && a<…… 题解列表 2021年11月30日 0 点赞 0 评论 906 浏览 评分:0.0
C++解题思路 摘要:解题思路: 注意事项: 参考代码: #include<cstdio> #include<iostream> using namespace std; int main() { …… 题解列表 2021年12月09日 0 点赞 0 评论 1038 浏览 评分:0.0
利用笨办法求解 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a; int b; while (cin >> a) { …… 题解列表 2021年12月29日 0 点赞 0 评论 549 浏览 评分:0.0
Java利润计算 解题思路:注意事项:零的个数不要搞混参考代码:importjava.util.Scanner;publicclassWork1010{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);inti=sc.nextInt() 题解列表 2022年01月06日 0 点赞 0 评论 961 浏览 评分:9.9
利润计算(c代码) 解题思路:该题类似于分段函数,考虑用switch语句注意事项:一般思路就是用case语句从0--9加上default顺次编写,但要注意题目中的利润区间,在switch语句体现出来例如case2:同时存在于100000 题解列表 2022年01月09日 0 点赞 0 评论 1082 浏览 评分:9.9 妙用递归简化问题 摘要:解题思路:递归的思路,为了简化大量重复的代码注意事项:无参考代码:#include<stdio.h> int f(int n){ if(n<=100000) return n*0.1; el…… 题解列表 2022年01月18日 0 点赞 1 评论 529 浏览 评分:9.9 c语言方法解决,一个个条件都放在if里判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int profit; int bonus; scanf("%d",&profit); if…… 题解列表 2022年01月21日 0 点赞 0 评论 582 浏览 评分:0.0 1010: [编程入门]利润计算(python解) 摘要:解题思路:简单的分支语句 注意事项:计算需谨慎认真参考代码:while True: a=int(input()) if(a<=100000): x=a*0.1 elif…… 题解列表 2022年01月22日 0 点赞 2 评论 1092 浏览 评分:6.0 « 12...20212223242526...3334 »
妙用递归简化问题 摘要:解题思路:递归的思路,为了简化大量重复的代码注意事项:无参考代码:#include<stdio.h> int f(int n){ if(n<=100000) return n*0.1; el…… 题解列表 2022年01月18日 0 点赞 1 评论 529 浏览 评分:9.9
c语言方法解决,一个个条件都放在if里判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int profit; int bonus; scanf("%d",&profit); if…… 题解列表 2022年01月21日 0 点赞 0 评论 582 浏览 评分:0.0
1010: [编程入门]利润计算(python解) 摘要:解题思路:简单的分支语句 注意事项:计算需谨慎认真参考代码:while True: a=int(input()) if(a<=100000): x=a*0.1 elif…… 题解列表 2022年01月22日 0 点赞 2 评论 1092 浏览 评分:6.0