-
Notifications
You must be signed in to change notification settings - Fork 0
/
1066.py
59 lines (53 loc) · 832 Bytes
/
1066.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())
p = 0
i = 0
m = 0
n = 0
if A % 2 == 0:
p = p + 1
if B % 2 == 0:
p = p + 1
if C % 2 == 0:
p = p + 1
if D % 2 == 0:
p = p + 1
if E % 2 == 0:
p = p + 1
if A % 2 != 0:
i = i + 1
if B % 2 != 0:
i = i + 1
if C % 2 != 0:
i = i + 1
if D % 2 != 0:
i = i + 1
if E % 2 != 0:
i = i + 1
if A > 0:
m = m + 1
if B > 0:
m = m + 1
if C > 0:
m = m + 1
if D > 0:
m = m + 1
if E > 0:
m = m + 1
if A < 0:
n = n + 1
if B < 0:
n = n + 1
if C < 0:
n = n + 1
if D < 0:
n = n + 1
if E < 0:
n = n + 1
print(p, "valor(es) par(es)")
print(i, "valor(es) impar(es)")
print(m, "valor(es) positivo(s)")
print(n, "valor(es) negativo(s)")