diff --git a/views/problems.ejs b/views/problems.ejs index ab4554d..51b5fc3 100644 --- a/views/problems.ejs +++ b/views/problems.ejs @@ -142,7 +142,7 @@ if (typeof tags !== 'undefined') tagIDs = tags.map(x => x.id); <%= problem.ac_num %> <%= problem.submit_num %> - <%= ((problem.ac_num / problem.submit_num * 100) || 0).toFixed(2) %>% + <%= problem.submit_num != 0 ? (((problem.ac_num / problem.submit_num * 100) || 0).toFixed(2) + '%') : '-' %> <% } %> <% } %>