Problem Link : https://www.urionlinejudge.com.br/judge/en/problems/view/1043
Solution :
নাদান পোলাপানের জন্য !:D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} | |
Problem Link : https://www.urionlinejudge.com.br/judge/en/problems/view/1035
Solution :
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |