C
C
ceramicthree2020-05-23 16:50:39
Java
ceramicthree, 2020-05-23 16:50:39

How to understand data entry via Input.txt in a Yandex Contest task?

I solve problems on Yandex Contest, in the condition of the task it says "Input via Input.txt. Output via Output.txt". Did I understand correctly that I need to create an Input.txt file and specify the path to it in the program code, and at the end of the program execution write the answer to the created Output.txt file? It's just that I don't really understand how the path to my file written in my code will work in the Yandex Contest check.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2020-05-23
@ceramicthree

Do not specify full paths (including when debugging on your computer), files will be taken from the current working directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question