Skip to content

Commit

Permalink
Solve Christmas Balls in python
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Nov 12, 2024
1 parent 88e6ef4 commit 154cb9a
Show file tree
Hide file tree
Showing 6 changed files with 1,859 additions and 0 deletions.
10 changes: 10 additions & 0 deletions solutions/beecrowd/3170/3170.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import sys

for line in sys.stdin:
b = int(line)
g = int(input())

if g // 2 < b:
print('Amelia tem todas bolinhas!')
else:
print(f'Faltam {(g // 2) - b} bolinha(s)')
15 changes: 15 additions & 0 deletions solutions/beecrowd/3170/generate_in.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -euo pipefail

TESTCASES=600
MIN_B=2
MAX_B=999
MIN_G=102
MAX_G=899

for _ in $(seq "${TESTCASES}"); do
echo "$((RANDOM % MAX_B + MIN_B))"
echo "$((RANDOM % MAX_G + MIN_G))"
done

Loading

0 comments on commit 154cb9a

Please sign in to comment.