Wednesday, January 20, 2016

URI Solution of 1035 - Selection Test 1

#include<stdio.h>

//URI 1035
//Author: Humaun Kabir

int main(){
 int a, b, c, d;
 scanf("%d %d %d %d", &a, &b, &c, &d);
 if (b > c && d > a && c + d > a + b && c > 0 && d > 0 && a % 2 == 0)
 printf("Valores aceitos\n");
 else
 printf("Valores nao aceitos\n");
 return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)