opt submit is a command to submit solutions in a competition. You need to login beforehand.


Usage

$ opt submit [option]

Option

※ If you do not specify the competition and match, the ones selected through opt select will be used.

Example

In terminal input format

  1. Execute the command.

    $ opt submit  
    
  2. 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]
    
  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.

In file input format

  1. Execute the command with the -f option.

    $ opt submit -f
    
  2. 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):~
    
  3. 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.

Submitting solutions programmatically