File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -576,22 +576,27 @@ following possible value:
576
576
(let-alist submission-detail
577
577
(with-current-buffer (get-buffer-create leetcode--result-buffer-name)
578
578
(erase-buffer )
579
- (insert (format " Status: %s \n " .status_msg))
579
+ (insert (format " Status: %s " .status_msg))
580
580
(cond
581
581
((eq .status_code 10 )
582
- (insert (format " %s /%s \n\n " .total_testcases .total_correct ))
582
+ (insert (format " ( %s /%s ) \n\n " .total_correct .total_testcases ))
583
583
(insert (format " Runtime: %s , faster than %. 2f%% of %s submissions.\n\n "
584
584
.status_runtime .runtime_percentile .pretty_lang))
585
585
(insert (format " Memory Usage: %s , less than %. 2f%% of %s submissions. "
586
586
.status_memory .memory_percentile .pretty_lang)))
587
587
((eq .status_code 11 )
588
- (insert (format " %s /%s \n\n " .total_testcases .total_correct)))
589
- ((eq .status_code 14 ) nil )
588
+ (insert (format " (%s /%s )\n\n " .total_correct .total_testcases))
589
+ (insert (format " Test Case: \n %s \n\n " .input))
590
+ (insert (format " Answer: %s \n\n " .code_output))
591
+ (insert (format " Expected Answer: %s \n\n " .expected_output))
592
+ (insert (format " Stdout: \n %s \n " .std_output)))
593
+ ((eq .status_code 14 )
594
+ (insert " \n " ))
590
595
((eq .status_code 15 )
591
- (insert " \n " )
596
+ (insert " \n\n " )
592
597
(insert (format (alist-get 'full_runtime_error submission-detail))))
593
598
((eq .status_code 20 )
594
- (insert " \n " )
599
+ (insert " \n\n " )
595
600
(insert (format (alist-get 'full_compile_error submission-detail)))))
596
601
(display-buffer (current-buffer )
597
602
'((display-buffer-reuse-window
You can’t perform that action at this time.
0 commit comments