module OIJ

Defined in:

api.cr
cli_helper.cr
command.cr
config.cr
file.cr
oij.cr
random_test.cr
service.cr
service/atcoder.cr
service/codeforces.cr
service/yukicoder.cr
template.cr
testcase.cr
utility.cr

Class Method Summary

Macro Summary

Class Method Detail

def self.after_two_hyphens(array : Array(String) = ARGV) : Array(String) | Nil #

[View source]
def self.bundled_file(file : Path) : File #

[View source]
def self.compile(file : Path, option : String | Nil, &) : Bool #

[View source]
def self.compile(file : Path, option : String | Nil) : Bool #

[View source]
def self.compile?(file : Path, option : String | Nil, &) : Bool #

[View source]
def self.compile?(file : Path, option : String | Nil) : Bool #

[View source]
def self.compile_and_test(file : Path, option : String | Nil, oj_args : Array(String) | Nil) #

[View source]
def self.compile_command(file : Path, option : String | Nil) : String #

[View source]
def self.compile_command?(file : Path, option : String | Nil) : String | Nil #

[View source]
def self.edit_testcase(name : String, dir : Path) : Nil #

[View source]
def self.error(message, exit_code = 1) #

[View source]
def self.error(message, exit_code = 1, &) #

[View source]
def self.execute(file : Path, option : String | Nil, input : String | Nil, &) #

[View source]
def self.execute(file : Path, option : String | Nil, input : String | Nil) : NoReturn #

[View source]
def self.execute_command(file : Path, option : String | Nil) : String #

[View source]
def self.exit_with_message(status : Process::Status, &) #

[View source]
def self.generate_all_templates : Nil #

[View source]
def self.generate_input(generator : Path, option : String | Nil, count : Int32 | Nil, oj_args : Array(String) | Nil) #

[View source]
def self.generate_output(solver : Path, option : String | Nil, oj_args : Array(String) | Nil) #

[View source]
def self.generate_template(ext : String) : Nil #

[View source]
def self.guess_program_file : Path #

[View source]
def self.guess_program_file? : Path | Nil #

[View source]
def self.hack(hack : Path, hack_option : String | Nil, generator : Path, generator_option : String | Nil, solver : Path, solver_option : String | Nil, oj_args : Array(String) | Nil) #

[View source]
def self.info(message) #

[View source]
def self.info_run(command : String, args : Enumerable(String) | Nil = nil, shell : Bool = false, message : String = "") #

[View source]
def self.normalize_input_file(file : String) : Path #

[View source]
def self.normalize_testcase_files(name : String, dir : Path) : Tuple(Path, Path) #

[View source]
def self.oj_api(command : String, url : String) : JSON::Any #

[View source]
def self.oj_api_success?(command : String, url : String) : Bool #

[View source]
def self.print_file(file : Path) : Nil #

[View source]
def self.print_file(files : Enumerable(Path)) : Nil #

[View source]
def self.print_testcase(name : String, dir : Path) : Nil #

[View source]
def self.program_file?(file : String) : Bool #

[View source]
def self.run(file : Path, option : String | Nil, input_file : String | Nil) : NoReturn #

[View source]
def self.test(file : Path, option : String | Nil, oj_args : Array(String) | Nil) : NoReturn #

[View source]
def self.warning(message) #

[View source]

Macro Detail

macro define_contest_flags #

[View source]
macro define_problem_flags #

[View source]