-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2215695
commit 41d5bd7
Showing
6 changed files
with
1,286 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
a, b, c, d = map(int, input().split()) | ||
import sys | ||
|
||
if b > c and d > a and c + d > a + b and c > 0 and d > 0 and a % 2 == 0: | ||
print('Valores aceitos') | ||
else: | ||
print('Valores nao aceitos') | ||
for line in sys.stdin: | ||
a, b, c, d = map(int, line.split()) | ||
|
||
if b > c and d > a and c + d > a + b and c > 0 and d > 0 and a % 2 == 0: | ||
print('Valores aceitos') | ||
else: | ||
print('Valores nao aceitos') |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
MAX_NUMBER=4 | ||
|
||
for i in $(seq 0 "${MAX_NUMBER}"); do | ||
for j in $(seq 0 "${MAX_NUMBER}"); do | ||
for k in $(seq 0 "${MAX_NUMBER}"); do | ||
for l in $(seq 0 "${MAX_NUMBER}"); do | ||
echo "${i} ${j} ${k} ${l}" | ||
done | ||
done | ||
done | ||
done |
Oops, something went wrong.