-
-
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
67aa0ba
commit c3491d9
Showing
6 changed files
with
5,375 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
def is_valid_tree(a, d, g): | ||
return a >= 200 and a <= 300 and d >= 50 and g >= 150 | ||
|
||
|
||
n = input() | ||
|
||
for _ in range(int(n)): | ||
line = input() | ||
a, d, g = map(int, line.split()) | ||
print('Sim' if is_valid_tree(a, d, g) else 'Nao') |
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
echo "2662" | ||
|
||
for h in $(seq 195 205) $(seq 295 305); do | ||
for d in $(seq 45 55); do | ||
for g in $(seq 145 155); do | ||
echo "${h} ${d} ${g}" | ||
done | ||
done | ||
done | ||
|
Oops, something went wrong.