Skip to content

Commit

Permalink
Add time & memory limit to problem description
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohminchae authored and dotoleeoak committed Aug 6, 2021
1 parent 1e7b15d commit bbaf714
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions frontend/src/pages/oj/views/problem/Problem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@
</h2>
<pre class="sample-io">{{sample.output}}</pre>
<div class="blank-line"></div>
<b-table
:items="[{time_limit:problem.time_limit + ' sec.', memory_limit:problem.memory_limit + ' MB'}]"
:fields="['time_limit', 'memory_limit']"
class="text-light"
>
</b-table>
</div>

<div v-if="problem.hint" v-katex>
Expand Down Expand Up @@ -250,9 +256,10 @@ export default {
username: ''
},
tags: [],
io_mode: { io_mode: 'Standard IO' }
io_mode: { io_mode: 'Standard IO' },
memory_limit: '',
time_limit: ''
},
// CodeMirror
code: '',
language: 'C++',
Expand Down

0 comments on commit bbaf714

Please sign in to comment.