-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
96827ed
commit 2a0128c
Showing
6 changed files
with
20,043 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,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))) |
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 @@ | ||
#!/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" |
Oops, something went wrong.