uri problem 1046
// URI PROBLEM : 1046 || GAME TIME
#include <stdio.h>
int main()
{
int s, e, time;
scanf("%d %d", &s, &e);
if (e <= s)
{
e = e + 24;
}
time = e - s;
printf("O JOGO DUROU %d HORA(S)n", time);
return 0;
}
uri problem 1046
// URI PROBLEM : 1046 || GAME TIME
#include <stdio.h>
int main()
{
int s, e, time;
scanf("%d %d", &s, &e);
if (e <= s)
{
e = e + 24;
}
time = e - s;
printf("O JOGO DUROU %d HORA(S)n", time);
return 0;
}
uri problem 1045
// URI Problem : 1045 || Trangle Types
#include <stdio.h>
int main()
{
double a, b, c, temp, x, y, z;
scanf("%lf %lf %lf", &a, &b, &c);
x = a;
y = b;
z = c;
if (a < b)
{
temp = a;
a = b;
b = temp;
}
if (a < c)
{
temp = a;
a = c;
c = temp;
}
if (b < c)
{
temp = b;
b = c;
c = temp;
}
if (a >= b + c)
{
printf("NAO FORMA TRIANGULOn");
}
else
{
if ((a * a) == (b * b) + (c * c))
{
printf("TRIANGULO RETANGULOn");
}
if ((a * a) > (b * b) + (c * c))
{
printf("TRIANGULO OBTUSANGULOn");
}
if ((a * a) < (b * b) + (c * c))
{
printf("TRIANGULO ACUTANGULOn");
}
if (a == b && a == c && b == c)
{
printf("TRIANGULO EQUILATEROn");
}
if ((a == b && a != c) || (a == c & a != b) || (b == c && b != a))
{
printf("TRIANGULO ISOSCELESn");
}
}
return 0;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us