diff --git a/solutions/beecrowd/1099/generate_in.sh b/solutions/beecrowd/1099/generate_in.sh index be00d8e5..d22fbdd6 100755 --- a/solutions/beecrowd/1099/generate_in.sh +++ b/solutions/beecrowd/1099/generate_in.sh @@ -4,8 +4,8 @@ set -euo pipefail TESTCASES=1000 -echo "$TESTCASES" -for _ in $(seq $TESTCASES); do +echo "${TESTCASES}" +for _ in $(seq "${TESTCASES}"); do if [[ $((RANDOM % 2)) -eq 0 ]]; then echo "$((RANDOM % 10000 + 1)) $((RANDOM % 100 + 1))" else diff --git a/solutions/beecrowd/1156/1156.c b/solutions/beecrowd/1156/1156.c index b9985cf7..6f328e79 100644 --- a/solutions/beecrowd/1156/1156.c +++ b/solutions/beecrowd/1156/1156.c @@ -6,7 +6,7 @@ int main() { int16_t i; for (i = 3; i <= 39; i += 2) { - s += (double)(i / x); + s += i / x; x *= 2; }