Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/components/problem/Problem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<section class="section" v-if="problem">
<h1 class="title">{{ problem.title }}</h1>
<div>配点: {{ problem.point }}</div>
<div>配点: {{ score }}</div>
<div>時間制限: {{ timeLimit }} sec / メモリ制限: {{ problem.memoryLimit }} MiB</div>
<hr>
<div class="content">
Expand Down Expand Up @@ -64,6 +64,15 @@ export default {
timeLimit() {
return this.problem.timeLimit / 1000000000;
},
score() {
if (!this.problem.caseSets || this.problem.caseSets.length === 0) {
return 0;
}
return this.problem
.caseSets
.map(s => s.point)
.reduce((accumulator, currentValue) => accumulator + currentValue);
},
},
};
</script>