Skip to content

Commit

Permalink
Improve input/output files
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Nov 16, 2024
1 parent e00c58e commit 0a678ad
Show file tree
Hide file tree
Showing 5 changed files with 251,510 additions and 5 deletions.
8 changes: 4 additions & 4 deletions solutions/beecrowd/1067/1067.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
int main() {
std::int16_t n, i;

std::cin >> n;

for (i = 1; i <= n; i += 2) {
std::cout << i << std::endl;
while (std::cin >> n) {
for (i = 1; i <= n; i += 2) {
std::cout << i << std::endl;
}
}

return 0;
Expand Down
10 changes: 10 additions & 0 deletions solutions/beecrowd/1067/generate_in.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -euo pipefail

TESTCASES=1000
CURRENT_PATH=$(dirname -- "${BASH_SOURCE[0]}")

for i in $(seq "${TESTCASES}"); do
echo "${i}" > "${CURRENT_PATH}/in-$(printf "%04d" "${i}")".txt
done
Loading

0 comments on commit 0a678ad

Please sign in to comment.