Skip to content

Commit

Permalink
Solve The Christmas Tree in python
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Jul 12, 2024
1 parent 67aa0ba commit c3491d9
Show file tree
Hide file tree
Showing 6 changed files with 5,375 additions and 0 deletions.
10 changes: 10 additions & 0 deletions solutions/beecrowd/3040/3040.py
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')
14 changes: 14 additions & 0 deletions solutions/beecrowd/3040/generate_in.sh
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

Loading

0 comments on commit c3491d9

Please sign in to comment.