URI Oj Problem # 1035 & 1043

URI Oj : 1043

Problem Link : https://www.urionlinejudge.com.br/judge/en/problems/view/1043

Solution : 


নাদান পোলাপানের জন্য !:D



#include<stdio.h>
int main()
{
float a,b,c,perm,area;
while(scanf("%f %f %f",&a,&b,&c)==3){
if(a+b>c && b+c>a && a+c>b ){
perm=a+b+c;
printf("Perimetro = %.1f\n",perm);
}
else{
area=.5*(a+b)*c;
printf("Area = %.1f\n",area);
}
}
return 0;
}
URI Oj : 1035

Problem Link : https://www.urionlinejudge.com.br/judge/en/problems/view/1035

Solution :


#include<stdio.h>
int main()
{
int a,b,c,d,sum,sum1;
while(scanf("%d %d %d %d",&a,&b,&c,&d)==4){
sum=c+d;
sum1=a+b;
if(b>c && d>a && sum>sum1 && c>=0 && d>=0 && a%2==0)
printf("Valores aceitos\n");
else
printf("Valores nao aceitos\n");
}
return 0;
}
view raw gistfile1.c hosted with ❤ by GitHub