山东大学-VirtualJudge-总结4

在最近这几天,由于我下一步主要工作负责SDUVJ前端的开发以及前段和前端与后台之间的通信,所以在通读对Django框架有了足够的了解之后,主要集中在进一步阅读SDUOJ的源码,希望能够从中借鉴OlineJudge的相关开发经验。

Contest前端####

{% extends "base.html" %}

{% block title %}{{ contest.name }}{% endblock %}

{% block navbar %}{% include "include/navbar-contest.html" %}{% endblock %}

{% block header %}
    

{{ contest.name }}

  • Start Time: {{ contest.start_time }} Duration Time: {{ contest.duration_time }}
  • Current Time: 1970-01-01 00:00:00
{% endblock %} {% block content %}
{% include "contest/contest_overview.html" %}
{% include "contest/contest_problem.html" %}
{% include "contest/contest_status.html" %}
{% include "contest/contest_submit.html" %}
{% include "contest/contest_rank.html" %}
{% include "contest/contest_clar.html" %}
{% endblock %}

Contest问题显示####








{{ problem.title }}

  • Time Limit: {{ problem.limit_time }}s
  • Memory Limit: {{ problem.limit_memory|filesizeformat }}

Description

{% autoescape off %}
{{ problem.content }}

Input

{{ problem.input }}

Output

{{ problem.output }}
{% endautoescape %} {% if problem.samples %} {% for s in problem.samples %}

Sample Input {{ forloop.counter }}

{{ s.input }}

Sample Output {{ forloop.counter }}

{{ s.output }}
{% endfor %} {% endif %} {% autoescape off %}

Note

{{ problem.note }}

Source

{{ problem.source }}
{% endautoescape %}

你可能感兴趣的:(山东大学-VirtualJudge-总结4)