首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
chenshoumin
2025年1月24日 10:27
利润提成 题解:纯C
P1040
回复 0
|
赞 46
|
浏览 1.8k
#include<stdio.h> int main(){ double x=0; double y=0; scanf("%lf", &x); if(x<=100000){ y=x*0.1; } else if(x<=...
hellokitty1679
2024年8月18日 10:53
利润提成 题解:C/C++
P1040
回复 0
|
赞 29
|
浏览 2.7k
#include<bits/stdc++.h> using namespace std; int main(void) { int l; scanf("%d",&l); if(l<=100000)printf("%g",0.1*l); else if(l>100000&&l<=200000)printf("%g",(0.1...
peace123
2024年8月11日 16:39
利润提成 题解:
P1040
回复 0
|
赞 0
|
浏览 1.1k
#include<iostream> using namespace std; int main() { int lr;int jj; cin>>lr; if(lr<=100000) { jj = lr*0.1; } if(lr<=2...
可可爱爱草莓派
2024年7月18日 12:02
利润提成 题解:switch题解
P1040
回复 0
|
赞 4
|
浏览 1.3k
//switch方法 #include<iostream> using namespace std; int main(){ int l; cin >> l; switch(l/100000){ case 0: cout << l * 0.1;break; case 1: cout << (1 * 0.1) * 100000 +...
LTTTTT
2024年7月5日 10:58
利润提成 题解:递归
P1040
回复 0
|
赞 2
|
浏览 1.1k
#include<bits/stdc++.h> using namespace std; int profit(double n) { double ans=0; if(n<=100000) {ans=(0.1*n); } else if(n>100000&&n<=200000)&nbs...
18919717626
2024年6月29日 19:15
利润提成 题解:
P1040
回复 0
|
赞 3
|
浏览 1.1k
#include <iostream> using namespace std; double calculate_bonus(double profit) { double bonus = 0; if (profit <= 100000) { bonus = profit * 0.1; } else if (profit <= 200000) { bonus = 100000 * 0.1 + (profit - 100000) * 0.075; } else if (pr...
Candour
2024年4月22日 18:14
利润提成 题解:
P1040
回复 0
|
赞 3
|
浏览 1.3k
#include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e5; LL x, ans; int main() { cin >> x; if(x <= N) ans = x * 0.1; else if(x <= N * 2) ans = N * 0.1 + (x - N) * 0.075; else if(x <= N * 4) ans = N * 0.1 + N * 0.075 ...
小酒
2024年3月11日 15:53
利润提成 题解:
P1040
回复 0
|
赞 8
|
浏览 1.6k
1040解题思路 #include <stdio.h> int main() { double I;//输入利润 scanf("%lf",&I); if(I<=100000) printf("%g",I*0.1); if(I>100000&&I<=200000) ...
tianyz
2023年7月27日 14:44
利润提成 题解:
P1040
回复 0
|
赞 2
|
浏览 2.1k
#include <bits/stdc++.h> using namespace std; int I, res; int main() { cin >> I; if (I <= 100000) res = I * 0.1; else if (I <= 200000) res = 100000 * 0.1 + (I - 100000) * 0.075; else if (I <= 400000) res = 100000 * 0.1 + 100000 * 0.075 + (I - 200000)...
Hegel
2023年3月17日 16:41
多个范围利润提成
P1040
回复 0
|
赞 1
|
浏览 3.6k
#include <iostream> using namespace std; int main() { float sum =0,a; cin>>a; if(a<=100000) sum=a*10/100; else if(a<=200000) sum = 100000*10/100+(a-100000)*7.5/100; else if(a<=400000) sum = 100000*10/100+100000*7.5/100+(a-200000)*5/100; else if(a<=...
1
2
3
题目
利润提成
题解数量
23
发布题解
在线答疑
热门题解
1
利润提成 题解:纯C
2
利润提成 题解:
3
利润提成 题解:C/C++
4
利润提成 题解:
5
利润提成 题解:打表
6
利润提成 题解:
7
1040 利润提成 北京大学机试题
8
利润提成 题解:
9
利润提成 题解:
10
利润提成 题解: