Class: C
Constant Summary
Constants inherited
from Languages
Languages::ALL_LANGUAGES
Instance Method Summary
collapse
Methods inherited from Languages
#initialize
Constructor Details
This class inherits a constructor from Languages
Instance Method Details
#compile(problem_name) ⇒ Object
38
39
40
41
|
# File 'lib/atcoder_greedy/lib/languages.rb', line 38
def compile(problem_name)
@exec_file = "#{problem_name}.out"
system "gcc #{@solve_file} -o #{problem_name}.out"
end
|
#execute(input_path, output_path) ⇒ Object
43
44
45
|
# File 'lib/atcoder_greedy/lib/languages.rb', line 43
def execute(input_path, output_path)
system "./#{@exec_file} < #{input_path} > #{output_path}"
end
|