题目描述
%的输出需要两个
样例
#include<bits/stdc++.h>
using namespace std;
int main(){
double a;
cin>>a;
if(a>=0&&a<=400){
printf("Novo salario: %.2lf\n",a*(1+0.15));
printf("Reajuste ganho: %.2lf\n",a*0.15);
printf("Em percentual: 15 %%\n");
}else if(a>400&&a<=800){
printf("Novo salario: %.2lf\n",a*(1+0.12));
printf("Reajuste ganho: %.2lf\n",a*0.12);
printf("Em percentual: 12 %%\n");
}else if(a>800&&a<=1200){
printf("Novo salario: %.2lf\n",a*(1+0.10));
printf("Reajuste ganho: %.2lf\n",a*0.10);
printf("Em percentual: 10 %%\n");
}else if(a>1200&&a<=2000){
printf("Novo salario: %.2lf\n",a*(1+0.07));
printf("Reajuste ganho: %.2lf\n",a*0.07);
printf("Em percentual: 7 %%\n");
}else{
printf("Novo salario: %.2lf\n",a*(1+0.04));
printf("Reajuste ganho: %.2lf\n",a*0.04);
printf("Em percentual: 4 %%\n");
}
return 0;
}
算法1
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla
算法2
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla