Skip to content

Commit

Permalink
Solve Selection Test 1 in c
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Jul 24, 2024
1 parent f9dd2ea commit edfeccb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions solutions/beecrowd/1035/1035.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <stdint.h>
#include <stdio.h>

int main() {
int16_t 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;
}

0 comments on commit edfeccb

Please sign in to comment.