Class: Hs
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
49
50
51
52
|
# File 'lib/atcoder_greedy/lib/languages.rb', line 49
def compile(problem_name)
@exec_file = "#{problem_name}.out"
system "ghc #{@solve_file} -o #{problem_name}.out"
end
|
#execute(input_path, output_path) ⇒ Object
54
55
56
|
# File 'lib/atcoder_greedy/lib/languages.rb', line 54
def execute(input_path, output_path)
system "./#{@exec_file} < #{input_path} > #{output_path}"
end
|