can I use a basic template and auto code completition

I just begin to learn Bronze for 2 weeks and I asked ai and searched online, some said can’t use prewritten template each place said different so I was cofusing.


is this allowed?
and the second question is can I switch on the non-ai code completion in my ide?

Yes given how short it is and that it only consists of basic functionality.

Yes.

I also have a question about this, 2 in fact.

First: what references can be used in the USACO contest?

Second: can you use like templete that does stuff like input and output?

import sys

sys.stdin = open("shell.in", "r")
sys.stdout = open("shell.out", "w")
data = iter(map(int, sys.stdin.read().split()))

also what is switching on non-ai code completion in my IDE

see https://usaco.org/index.php?page=instructions

“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.).”

I don’t see why you would need file I/O in USACO contests nowadays.

like this for example: IntelliSense

I think today the USACO has cancelled the non standard input and output. We just need std::cin instead.