Class: JudgeSystem::WandBox
- Inherits:
-
Object
- Object
- JudgeSystem::WandBox
- Defined in:
- lib/judge_system.rb
Class Method Summary collapse
Class Method Details
.judge(lang, code, answer, stdin, time) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/judge_system.rb', line 51 def self.judge lang, code , answer, stdin, time output = run lang, code, stdin, time if output == 'TLE' return 'TLE' elsif output == 'RE' return 'RE' else result = output == answer if result return 'AC' else return 'WA' end end end |