Can i use a debug function that prints arrays or vectors for USACO by copying and pasting it into my code.
Does it violate USACO’s cheating rules. This clause is what I am worried about:
" * The USACO contest environment is meant to mimic the environment at the International Olympiad in Informatics, where all code must be written from scratch, and the only references you may consult are those describing syntax or library functions of your programming language. You may therefore NOT use pre-written code or “templates” to get a head start on your coding, and you may not consult resources other than those that provide information about basic functionality of your programming language (e.g., syntax, library functions, input / output, etc.)."
Here is the function:
void printArr(vector<int> arr){
int N = arr.size();
cout << N << " [";
for (int i = 0; i < N; i++){
cout << arr[i];
if (i+1 < N){
cout << ", ";
}
}
cout << "]" << endl;
}