json.status 0
json.message "评测完成"
json.data do
  json.(@result, :id, :status, :error_line, :error_msg,
      :input, :output, :execute_time, :execute_memory)
  json.passed @my_hack.passed
# 提交模式多了一个预计输出
  if @mode == "submit"
    json.expected_output @result.expected_output
  end
end


