#include<iostream>usingnamespace std;intmain(){double a,b,c;
cin >> a >> b >>c;//把A设置为最大值if(a < b){double t=a;
a=b;
b=t;}if(a < c){double t=a;
a=c;
c=t;}if(b < c){double t=b;
b=c;
c=t;}if(a>=b+c) cout<<"NAO FORMA TRIANGULO"<<endl;else{if(a*a == b*b + c*c)
cout<<"TRIANGULO RETANGULO"<<endl;if(a*a > b*b + c*c)
cout<<"TRIANGULO OBTUSANGULO"<<endl;if(a*a < b*b + c*c)
cout<<"TRIANGULO ACUTANGULO"<<endl;if(a == b &&b == c)
cout<<"TRIANGULO EQUILATERO"<<endl;if((a == b && a != c && b != c)||(a == c && a != b && c != b)||(b == c && b != a && c != a))
cout<<"TRIANGULO ISOSCELES"<<endl;}return0;}
#include<iostream>#include<cstdio>usingnamespace std;intmain(){int a,b,c,d,x,y;
cin>> a>>b>>c>>d;if(a<c){
x =(c*60+d-a*60-b)/60;
y =(c*60+d-a*60-b)%60;}elseif(a==c){if(b>d){
x =((24+c)*60+d-a*60-b)/60;
y =((24+c)*60+d-a*60-b)%60;}elseif(b==d){
x =24;
y =0;}elseif(b<d){
x =0;
y = d-b;}}else{
x =((24+c)*60+d-a*60-b)/60;
y =((24+c)*60+d-a*60-b)%60;}printf("O JOGO DUROU %d HORA(S) E %d MINUTO(S)",x,y);return0;}
#include<iostream>#include<cstdio>usingnamespace std;intmain(){double salary,x,tax;
cin >> salary;if(salary>=0.00&&salary<=2000.00){printf("Isento");}elseif(salary>=2000.01&&salary<=3000.00){
x =(salary-2000)*0.08;printf("R$ %.2lf",x);}elseif(salary>=3000.01&&salary<=4500.00){
x =1000*0.08+(salary-3000)*0.18;printf("R$ %.2lf",x);}elseif(salary>4500.00){
x =1000*0.08+1500*0.18+(salary-4500)*0.28;printf("R$ %.2lf",x);}return0;}
#include<iostream>#include<cstdio>usingnamespace std;intmain(){int a,b,c;
cin >> a >> b >> c;int x = a,y = b,z = c;if(a > b){int t = a;
a = b;
b = t;}if(c < a){int t = a;
a = c;
c = t;}if(c < b){int t = b;
b = c;
c = t;}
cout << a << endl << b << endl << c << endl << endl;
cout << x << endl << y << endl << z << endl;return0;}