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 Dec 19, 2023
1 parent b2729fc commit 57a430f
Show file tree
Hide file tree
Showing 4 changed files with 199,997 additions and 10 deletions.
8 changes: 4 additions & 4 deletions solutions/beecrowd/1259/1259.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <iostream>
#include <vector>

bool compare(std::int16_t i, std::int16_t j) {
bool compare(std::int32_t i, std::int32_t j) {
if (i % 2 == 0 && j % 2 == 1) {
return true;
}
Expand All @@ -18,9 +18,9 @@ bool compare(std::int16_t i, std::int16_t j) {
}

int main() {
std::int16_t n, c;
std::uint16_t i;
std::vector< std::int16_t > v;
std::int32_t n, c;
std::uint32_t i;
std::vector< std::int32_t > v;

std::cin >> c;
while (c--) {
Expand Down
9 changes: 9 additions & 0 deletions solutions/beecrowd/1259/generate_in.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

RANGE_START=2
RANGE_END=100000

echo $((RANGE_END - RANGE_START + 1))
seq "${RANGE_START}" "${RANGE_END}" | shuf
Loading

0 comments on commit 57a430f

Please sign in to comment.