头像

warninging




离线:6天前


最近来访(4)
用户头像
Aiopr_2378
用户头像
凌蕸
用户头像
violet_garden
用户头像
Han520


include [HTML_REMOVED]

using namespace std;

int main()
{
double a,b,c,d;
double sum,x,y,z;
cin >> a >>b >> c >> d;
sum=a2+b3+c*4+d;
x=sum/10;
printf(“Media: %.1f\n”,sum/10);
if(x>=7.0)printf(“Aluno aprovado.\n”);
if(x<5.0)printf(“Aluno reprovado.\n”);
if(x>=5.0&&x<7.0)
{
printf(“Aluno em exame.\n”);
cin >>y;
printf(“Nota do exame: %.1f\n”,y);
z=(x+y)/2;
if(z>=5)printf(“Aluno aprovado.\n”);
else printf(“Aluno reprovado.\n”);
printf(“Media final: %.1f\n”,z);
}
}




include [HTML_REMOVED]

include [HTML_REMOVED]

using namespace std;

int main()
{
double a,b,c;
cin >> a >> b >> c;
if(bb-4ac<0||a==0)
printf(“Impossivel calcular”);
else{
printf(“R1 = %.5f\n”,(-b+sqrt(b
b-4ac))/(2a));
printf(“R2 = %.5f”,(-b-sqrt(b
b-4ac))/(2*a));
}

}




include [HTML_REMOVED]

using namespace std;

int main()
{
int a,b,c,x,y,z;
cin >> a >>b >> c;
x=a;y=b;z=c;
if(a<b) swap(a,b);
if(a<c) swap(a,c);
if(b<c) swap(b,c);
printf(“%d\n%d\n%d\n”,c,b,a);
printf(“\n”);
printf(“%d\n%d\n%d\n”,x,y,z);

}




include [HTML_REMOVED]

using namespace std;

int main()
{
double a;
cin >> a;
if(a<=2000)
printf(“Isento”);
if(a<=3000&&a>=2000.1)
printf(“R$ %.2f”,(a-2000)0.08);
if(a<=4500&&a>=3000.1)
printf(“R$ %.2f”,1000
0.08+(a-3000)0.18);
if(a>4500) printf(“R$ %.2f”,1000
0.08+15000.18+(a-4500)0.28);

}




include [HTML_REMOVED]

using namespace std;

int main()
{
int a,b,c,d;
cin >> a >> b >> c >> d;
if(a>c)
{
c+=24;
}
if(d[HTML_REMOVED]a)
{
c-=1;
d+=60;
}
if(a==c&&b==d)
{
c+=24;
}

printf("O JOGO DUROU %d HORA(S) E %d MINUTO(S)",c-a,d-b);

}




include [HTML_REMOVED]

using namespace std;

int main()
{
double a,b,c;
cin >> a >> b >> c;

if(a<b) swap(a, b);
if(a<c) swap(a, c);
if(b<c) swap(b, c);

if(a>=b+c)printf("NAO FORMA TRIANGULO\n");

else
{if(a*a==b*b+c*c)printf("TRIANGULO RETANGULO\n");
 if(a*a>b*b+c*c)printf("TRIANGULO OBTUSANGULO\n");
 if(a*a<b*b+c*c)printf("TRIANGULO ACUTANGULO\n");
 if(a==b&&a==c)printf("TRIANGULO EQUILATERO\n");
 if(a==b&&b!=c||b==c&&a!=b||a==c&&a!=b)printf("TRIANGULO ISOSCELES");
}
return 0;

}




include [HTML_REMOVED]

using namespace std;

int main()
{
double a,b;
cin >> a >> b;
if(a>0&&b>0)printf(“Q1”);
if(a>0&&b<0)printf(“Q4”);
if(a<0&&b>0)printf(“Q2”);
if(a<0&&b<0)printf(“Q3”);
if(a==0&&b!=0)printf(“Eixo Y”);
if(a!=0&&b==0)printf(“Eixo X”);
if(a==0&&b==0)printf(“Origem”);
return 0;
}




include [HTML_REMOVED]

using namespace std;

int main()
{
int a;
cin >> a;
switch(a)
{
case 61:printf(“Brasilia\n”);break;
case 71:printf(“Salvador\n”);break;
case 11:printf(“Sao Paulo\n”);break;
case 21:printf(“Rio de Janeiro\n”);break;
case 32:printf(“Juiz de Fora\n”);break;
case 19:printf(“Campinas\n”);break;
case 27:printf(“Vitoria\n”);break;
case 31:printf(“Belo Horizonte\n”);break;
default:printf(“DDD nao cadastrado”);
}
return 0;
}




include [HTML_REMOVED]

using namespace std;

int main()
{
int a,b,c,d;
cin >> a >> b >> c >> d;
if(b>c&&d>a&&c+d>a+b&&c>0&&d>0&&a%2==0)
printf(“Valores aceitos”);
else printf(“Valores nao aceitos”);

}




include [HTML_REMOVED]

using namespace std;

int main()
{
string a[3];
string ss;
for(int i=0;i<3;i++)
cin >> a[i],ss+=a[i][0];
if(ss==”vac”)printf(“aguia”);
if(ss==”vao”)printf(“pomba”);
if(ss==”vmo”)printf(“homem”);
if(ss==”vmh”)printf(“vaca”);
if(ss==”iih”)
{if(a[2]==”hematofago”) printf(“pulga”);
else printf(“lagarta”);
}
if(ss==”iah”)printf(“sanguessuga”);
if(ss==”iao”)printf(“minhoca”);
return 0;

}