opt submit
is a command to submit solutions in a competition. You need to login beforehand.
$ opt submit [option]
※ If you do not specify the competition and match, the ones selected through opt select
will be used.
Execute the command.
$ opt submit
You will be prompted to input the solution, so please enter a solution that meets the problem's settings and conditions.
# If the solution is a scalar
$ opt submit
? Write the solution:123
# If the solution is a 3-dimensional vector
$ opt submit
? Write the solution:[1, 2, 3]
After you finish entering the input, a message saying Submitting to competition1/match1…
will appear. The [competition]
and [match]
will display the competition ID and match ID, respectively. After that, if the message ...Submitted.
is displayed, the solution submission is complete.
Execute the command with the -f
option.
$ opt submit -f
You will be prompted to enter the file path, so specify the path to the JSON file.
$ opt submit -f
? Submit the solution file (must be a JSON file):~
After confirming the file by pressing Enter, the message Submitting to [competition]/[match]...
will be displayed, with [competition]
and [match]
showing the competition ID and match ID, respectively. Once the message ...Submitted.
appears, the solution submission is complete.