头像

帕朵




离线:4天前


最近来访(4)
用户头像
左手影视
用户头像
呆头皮卡丘i
用户头像
不行就开摆
用户头像
PerfectPan

新鲜事 原文

帕朵
14天前
AcWing《SpringBoot框架课》拼团优惠!https://www.acwing.com/activity/content/introduction/1877/group_buy/106726/



帕朵
15天前

AcWing《SpringBoot框架课》拼团优惠!https://www.acwing.com/activity/content/introduction/1877/group_buy/106726/



活动打卡代码 AcWing 661. 平均数3

帕朵
1个月前
//这里填你的代码^^
//注意代码要放在两组三个点之间,才可以正确显示代码高亮哦~

include [HTML_REMOVED]

using namespace std;

int main(){

double a,b,c,d,y,z;
cin >> a>> b>> c>>d >>y;

double x = (2*a+3*b+4*c+d)/10;

if(x>=7.0){
    printf("Media: %.1f \n",x);
    cout<< "Aluno aprovado.";
}
else if(x<5.0){
    printf("Media: %.1f \n",x);
    cout << "Aluno reprovado.";
}
else{
    printf("Media: %.1f \n",x);
    cout << "Aluno em exame."<<endl;
    cout << "Nota do exame: "<<y<<endl;
    z = (x+y)/2;
    if (z >= 5.0){
        cout << "Aluno aprovado."<<endl;
    }
    else{
        cout << "Aluno reprovado."<<endl;
    }
    printf("Media final: %.1f",z);
}
return 0;

}



活动打卡代码 AcWing 660. 零食

帕朵
1个月前
//这里填你的代码^^
//注意代码要放在两组三个点之间,才可以正确显示代码高亮哦~

include [HTML_REMOVED]

using namespace std;

int main(){

int a ,b;

cin>>a>>b;
switch(a){
    case 1:
        printf("Total: R$ %.2f",b*4.00);
        break;
    case 2:
        printf("Total: R$ %.2f",b*4.50);
        break;
    case 3:
        printf("Total: R$ %.2f",b*5.00);
        break;
    case 4:
        printf("Total: R$ %.2f",b*2.00);
        break;
    case 5:
        printf("Total: R$ %.2f",b*1.50);
        break;
}
return 0;

}



活动打卡代码 AcWing 665. 倍数

帕朵
1个月前
//这里填你的代码^^
//注意代码要放在两组三个点之间,才可以正确显示代码高亮哦~

include [HTML_REMOVED]

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. 天数转换

帕朵
1个月前
//这里填你的代码^^
//注意代码要放在两组三个点之间,才可以正确显示代码高亮哦~

include [HTML_REMOVED]

using namespace std;

int main()
{
int n, l[3] = {365, 30, 1};
string o[3] = {“ano(s)”, “mes(es)”, “dia(s)”};
cin >> n;

for (int i = 0; i < 3; i++)
{
    cout << n/l[i] << " " << o[i] << endl;
    n = n % l[i];
}
return 0;

}



活动打卡代码 AcWing 656. 钞票和硬币

帕朵
1个月前
//这里填你的代码^^
//注意代码要放在两组三个点之间,才可以正确显示代码高亮哦~

include [HTML_REMOVED]

using namespace std;

int main()
{
double l1[7] = {100, 50, 20, 10, 5, 2};
double n, l2[6] = {1, 0.50, 0.25, 0.10, 0.05, 0.009};
cin >> n;

cout << "NOTAS:" << endl;
for (int i = 0; i < 6; i++)
{
    int  m1 = n / l1[i];
    printf("%d nota(s) de R$ %.2f \n", m1, l1[i]);
    n = n-m1*l1[i];
}

cout << "MOEDAS:" << endl;
for (int j = 0; j < 6; j++)
{
    int m2 = n / l2[j];
    printf("%d moeda(s) de R$ %.2f \n",m2, l2[j]);
    n = n-m2*l2[j];
}
return 0;

}



活动打卡代码 AcWing 618. 燃料消耗

帕朵
1个月前
//这里填你的代码^^
//注意代码要放在两组三个点之间,才可以正确显示代码高亮哦~

include [HTML_REMOVED]

using namespace std;

int main(){
long t,s;
cin >> t >>s;
printf(“%.3lf”,(double)(ts1.0)/12);
return 0;
}



活动打卡代码 AcWing 617. 距离

帕朵
1个月前
//这里填你的代码^^
//注意代码要放在两组三个点之间,才可以正确显示代码高亮哦~

include [HTML_REMOVED]

using namespace std;

int main(){

int l;
cin>> l;
printf("%d minutos",l*2);
return 0;

}



活动打卡代码 AcWing 614. 最大值

帕朵
1个月前
//这里填你的代码^^
//注意代码要放在两组三个点之间,才可以正确显示代码高亮哦~

include [HTML_REMOVED]

include [HTML_REMOVED]

using namespace std;
int max1(int x, int y);

int main()
{
int a, b, c;
cin >> a >> b >> c;
printf(“%d eh o maior”, max(max1(a, b), c));
return 0;
}

int max1(int x, int y)
{
int z;
z = (x + y + abs(x - y)) / 2;
return z;
}