1 solutions
-
0
C :
#include<stdio.h> 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"); } else { printf("Valores nao aceitos"); } return 0; }C++ :
#include<iostream> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; if(b > c && d > a && c + d > a + b && c > 0 && d > 0 && a % 2 == 0) cout<< "Valores aceitos" <<endl; else cout<< "Valores nao aceitos" <<endl; return 0; }
- 1
Information
- ID
- 643
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 5
- Tags
- # Submissions
- 91
- Accepted
- 36
- Uploaded By