Skip to content

Commit

Permalink
fix hack sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nasreddine Bac Ali committed Jan 1, 2020
1 parent c1ab13c commit 7432e0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
16 changes: 4 additions & 12 deletions hack_files_samples/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,10 @@
using namespace std;

int main(int argc, char* argv[]) {
srand(time(NULL));
int test_numbers = 20;
if (argc == 2) {
test_numbers = atol(argv[1]);
}
for (int i = 0; i < test_numbers; i++) {
string file_name = "test" + to_string(i) + ".in";
freopen(file_name.c_str(), "w", stdout);
////////////////////////////////
//////// Your code here ////////
////////////////////////////////
}

////////////////////////////////
//////// Your code here ////////
////////////////////////////////

return 0;
}
3 changes: 0 additions & 3 deletions hack_files_samples/tle_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
using namespace std;

int main(int argc, char* argv[]) {
#ifdef LOCAL
freopen("test0.in", "w", stdout);
#endif

////////////////////////////////
//////// Your code here ////////
Expand Down

0 comments on commit 7432e0b

Please sign in to comment.