Lxxx_6

85

Lxxx_6
7小时前
#include <iostream>

using namespace std;

int main(){
int a, b;
cin >> a >> b;
if(a==1){
printf("Total: R$%.2lf",4.0*b); } else if(a==2){ printf("Total: R$ %.2lf",4.5*b);
}
else if(a==3){
printf("Total: R$%.2lf",5.0*b); } else if(a==4){ printf("Total: R$ %.2lf",2.0*b);
}
else if(a==5){
printf("Total: R$%.2lf",1.5*b); } return 0; }  活动打卡代码 AcWing 665. 倍数 Lxxx_6 7小时前 #include <iostream> using namespace std; int main(){ int a,b; cin >> a >> b; if(a % b == 0 || b % a == 0){ cout << "Sao Multiplos" << endl; } else{ cout << "Nao sao Multiplos" << endl; } return 0; }  活动打卡代码 AcWing 655. 天数转换 Lxxx_6 7小时前 #include <iostream> using namespace std; int main(){ int n, y, m; cin >> n; y = n / 365 ; n = n - y * 365; m = n / 30 ; n = n - m * 30; cout << y << " ano(s)" << endl; cout << m << " mes(es)" << endl; cout << n << " dia(s)" << endl; return 0; }  活动打卡代码 AcWing 656. 钞票和硬币 Lxxx_6 7小时前 #include <iostream> using namespace std; int main() { int a[12]={10000,5000,2000,1000,500,200,100,50,25,10,5,1}; double c; cin >> c; int b = (int)(c*100); cout << "NOTAS:" << endl; for(int i = 0; i < 6 ; i++){ printf("%d nota(s) de R$ %.2lf\n",b/a[i],a[i]/100.0);
b %= a[i];
}
cout << "MOEDAS:" << endl;
for(int i = 6 ; i < 12 ; i ++){
printf("%d moeda(s) de R$%.2lf\n",b/a[i],a[i]/100.0); b %= a[i]; } return 0; }  活动打卡代码 AcWing 618. 燃料消耗 Lxxx_6 8小时前 #include <iostream> using namespace std; int main() { long long t, s; cin >> t >> s; printf("%.3lf",t * s / 12.0); return 0; }  活动打卡代码 AcWing 617. 距离 Lxxx_6 8小时前 #include <iostream> using namespace std; int main(){ int a; cin >> a; printf("%d minutos",2*a); return 0; }  活动打卡代码 AcWing 614. 最大值 Lxxx_6 8小时前 #include <iostream> using namespace std; int main(){ int a, b, c, t; cin >> a >> b >> c; t = max(a,b); cout << max(t,c) << " eh o maior"; return 0; }  活动打卡代码 AcWing 610. 工资和奖金 Lxxx_6 8小时前 #include <iostream> using namespace std; int main(){ string name; cin >> name; double b, c; cin >> b >> c; printf("TOTAL = R$ %.2lf",b+0.15*c);

return 0;
}


Lxxx_6
9小时前
#include <iostream>

using namespace std;

int main(){
double a, b, c;
cin >> a >> b >> c;
printf("MEDIA = %.1lf",(2*a+3*b+5*c)/10.0);

return 0;
}


Lxxx_6
9小时前
#include <iostream>
#define pi 3.14159
using namespace std;
int main(){
double a,b,c;
cin >> a >> b >> c;
printf("TRIANGULO: %.3lf\n",a*c/2);
printf("CIRCULO: %.3lf\n",c*c*pi);
printf("TRAPEZIO: %.3lf\n",(a+b)*c/2.0);