Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4b4916d

Browse files
committed
Add likes and dislikes to problem desc
1 parent 8938a59 commit 4b4916d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/commands/show.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,18 @@ function showProblem(problem, argv) {
152152
log.printf('* %s', problem.category);
153153
log.printf('* %s (%s%%)', h.prettyLevel(problem.level), problem.percent.toFixed(2));
154154

155-
if (filename)
156-
log.printf('* Source Code: %s', chalk.yellow.underline(filename));
155+
if (problem.likes)
156+
log.printf('* Likes: %s', problem.likes);
157+
if (problem.dislikes)
158+
log.printf('* Dislikes: %s', problem.dislikes);
157159
if (problem.totalAC)
158160
log.printf('* Total Accepted: %s', problem.totalAC);
159161
if (problem.totalSubmit)
160162
log.printf('* Total Submissions: %s', problem.totalSubmit);
161163
if (problem.testable && problem.testcase)
162164
log.printf('* Testcase Example: %s', chalk.yellow(util.inspect(problem.testcase)));
165+
if (filename)
166+
log.printf('* Source Code: %s', chalk.yellow.underline(filename));
163167

164168
log.info();
165169
log.info(problem.desc);

0 commit comments

Comments
 (0)