<%= @exercise.try(:exercise_description).nil? ? "" : @exercise.try(:exercise_description)&.html_safe %>
<% if @exercise_single_ques_count > 0 %> 单选题<%= @exercise_single_ques_count %>题, 共<%= @exercise_single_ques_scores %>分 <% end %> <% if @exercise_double_ques_count > 0 %> 多选题<%= @exercise_double_ques_count %>题, 共<%= @exercise_double_ques_scores %>分 <% end %> <% if @exercise_ques_judge_count > 0 %> 判断题<%= @exercise_ques_judge_count %>题, 共<%= @exercise_ques_judge_scores %>分 <% end %> <% if @exercise_ques_null_count > 0 %> 填空题<%= @exercise_ques_null_count %>题, 共<%= @exercise_ques_null_scores %>分 <% end %> <% if @exercise_ques_main_count > 0 %> 主观题<%= @exercise_ques_main_count %>题, 共<%= @exercise_ques_main_scores %>分 <% end %> <% if @exercise_ques_shixun_count > 0 %> 实训题<%= @exercise_ques_shixun_count %>题, 共<%= @exercise_ques_shixun_scores %>分 <% end %> <% if @exercise_ques_count > 0 %> 合计<%= @exercise_ques_count %>题 共<%= @exercise_ques_scores %>分 <% end %>
客观题 正确 错误 部分得分 总分:<%= @exercise_user&.score %>分
主观题 已评 未评 开始答题时间:<%= @exercise_user.start_at.present? ? @exercise_user.start_at.strftime("%Y-%m-%d %H:%M") : "--" %>
阶段成绩
关卡 | 任务名称 | 评测次数 | 完成时间 | 耗时 | 经验值 | 得分/满分 | <% if games.present? %> <% games&.each_with_index do |game, index| %> <% game_score = q.exercise_shixun_challenges.where(challenge_id:game.challenge.id) %> <% user_score = q.exercise_shixun_answers.where(exercise_shixun_challenge_id: game_score&.first&.id,user_id: @ex_user_user.id) %>
---|---|---|---|---|---|---|
<%= index + 1 %> | <%= game.challenge.subject %> | <%= game.evaluate_count %> | <%= game.end_time.present? ? game.end_time.strftime("%Y-%m-%d %H:%M") : "--" %> | <%= ApplicationController.helpers.time_consuming game %> | <%= game.final_score %> / <%= game.challenge.all_score %> | <%= user_score.present? ? user_score.first.score : 0.0 %> / <%= game_score.present? ? game_score.first.question_score : 0.0 %> |
<%= index + 1 %> | <%= game.challenge.subject %> | 0 | -- | -- | 0.0 / <%= game.challenge.all_score %> | 0.0 / <%= game_score.present? ? game_score.first.question_score : 0.0 %> |
实训详情
<% games&.each_with_index do |game, index| %>第<%= index+1 %>关<%= game.challenge.subject %>
评测次数 | 评测信息 | <% outputs = game.outputs.group("query_index") %> <% outputs.reverse.try(:each) do |output| %>
---|---|
<%= "第#{output.query_index}次" %> | <%= output_detail(game, output) %> |
最近通过的代码 <%= game.challenge&.path %>
<%= ques_user.real_name %><%= ques_comment.first.updated_at.strftime('%Y-%m-%d %H:%M') %>
<%= ques_comment.first.comment %>