Skip to content

Commit

Permalink
Solve Chocolate Factory in python
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Sep 23, 2024
1 parent 96827ed commit 2a0128c
Show file tree
Hide file tree
Showing 6 changed files with 20,043 additions and 0 deletions.
9 changes: 9 additions & 0 deletions solutions/beecrowd/1573/1573.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import sys

for line in sys.stdin:
if line.strip() == '0 0 0':
break

a, b, c = map(int, line.split())

print(int((a * b * c) ** (1 / 3)))
10 changes: 10 additions & 0 deletions solutions/beecrowd/1573/generate_in.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -euo pipefail

TESTCASE=10000

for _ in $(seq "${TESTCASE}"); do
echo "$((RANDOM % 1000 + 1)) $((RANDOM % 1000 + 1)) $((RANDOM % 1000 + 1))"
done
echo "0 0 0"
Loading

0 comments on commit 2a0128c

Please sign in to comment.