|
19 | 19 |
|
20 | 20 | print(directories)
|
21 | 21 |
|
22 |
| -columns = ''.join(['<th colspan=4 style="text-align: center;">' + task_type + '</th>' for task_type in task_types]) |
| 22 | +columns = ''.join(['<th colspan=5 style="text-align: center;">' + task_type + '</th>' for task_type in task_types]) |
23 | 23 | html_content = f"""
|
24 | 24 | <!DOCTYPE html>
|
25 | 25 | <html>
|
|
29 | 29 | </head>
|
30 | 30 | <body>
|
31 | 31 | <h1>Scoreboard</h1>
|
32 |
| - <p>S - Solution, P - Performance, O - Overdue, C - Cheating</p> |
| 32 | + <p><b>(S)olution</b> - The correctness and completeness of the implemented solution.</p> |
| 33 | + <p><b>(C)ompilation</b> - The ability of the code to compile successfully without errors.</p> |
| 34 | + <p><b>(A)cceleration</b> - The process of speeding up software to improve performance. Speedup = T(seq) / T(parallel)</p> |
| 35 | + <p><b>(E)fficiency</b> - Optimizing software speed-up by improving CPU utilization and resource management. Efficiency = Speedup / NumProcs * 100%</p> |
| 36 | + <p><b>(D)eadline</b> - The timeliness of the submission in relation to the given deadline.</p> |
| 37 | + <p><b>(P)lagiarism</b> - The originality of the work, ensuring no copied content from external sources.</p> |
33 | 38 | <table>
|
34 | 39 | <tr>
|
35 |
| - <th colspan=4>Tasks</th> |
| 40 | + <th colspan=5>Tasks</th> |
36 | 41 | {columns}
|
37 | 42 | <th>Total</th>
|
38 | 43 | </tr>
|
39 | 44 | <tr>
|
40 |
| - <th colspan=4></th> |
41 |
| - {''.join(['<th>S</th><th>P</th><th>O</th><th>C</th>' for _ in range(len(task_types))])} |
| 45 | + <th colspan=5></th> |
| 46 | + {''.join(['<th>S</th><th>A/C</th><th>E</th><th>D</th><th>P</th>' for _ in range(len(task_types))])} |
42 | 47 | <th></th>
|
43 | 48 | </tr>
|
44 | 49 | """
|
45 | 50 |
|
46 | 51 | for dir in directories:
|
47 |
| - html_content += f"<tr><td colspan=4>{dir}</td>" |
| 52 | + html_content += f"<tr><td colspan=5>{dir}</td>" |
48 | 53 | total_count = 0
|
49 | 54 | for task_type in task_types:
|
50 | 55 | if directories[dir].get(task_type) == "done":
|
|
54 | 59 | html_content += '<td style="text-align: center;background-color: lightblue;">1</td>'
|
55 | 60 | total_count += 1
|
56 | 61 | else:
|
57 |
| - html_content += "<td>0</td>" |
| 62 | + html_content += '<td style="text-align: center;">0</td>' |
| 63 | + html_content += '<td style="text-align: center;">0</td>' |
58 | 64 | html_content += '<td style="text-align: center;">0</td>'
|
59 | 65 | html_content += '<td style="text-align: center;">0</td>'
|
60 | 66 | html_content += '<td style="text-align: center;">0</td>'
|
|
0 commit comments