|
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> |
| 33 | + <b>(S)olution</b> - The correctness and completeness of the implemented solution.<br/> |
| 34 | + <b>(A)cceleration</b> - The process of speeding up software to improve performance. |
| 35 | + Speedup = T(seq) / T(parallel)<br/> |
| 36 | + <b>(E)fficiency</b> - Optimizing software speed-up by improving CPU utilization and resource management. |
| 37 | + Efficiency = Speedup / NumProcs * 100%<br/> |
| 38 | + <b>(D)eadline</b> - The timeliness of the submission in relation to the given deadline.<br/> |
| 39 | + <b>(P)lagiarism</b> - The originality of the work, ensuring no copied content from external sources.<br/> |
| 40 | + </p> |
33 | 41 | <table>
|
34 | 42 | <tr>
|
35 |
| - <th colspan=4>Tasks</th> |
| 43 | + <th colspan=5>Tasks</th> |
36 | 44 | {columns}
|
37 | 45 | <th>Total</th>
|
38 | 46 | </tr>
|
39 | 47 | <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))])} |
| 48 | + <th colspan=5></th> |
| 49 | + {''.join(['<th>S</th><th>A</th><th>E</th><th>D</th><th>P</th>' for _ in range(len(task_types))])} |
42 | 50 | <th></th>
|
43 | 51 | </tr>
|
44 | 52 | """
|
45 | 53 |
|
46 | 54 | for dir in directories:
|
47 |
| - html_content += f"<tr><td colspan=4>{dir}</td>" |
| 55 | + html_content += f"<tr><td colspan=5>{dir}</td>" |
48 | 56 | total_count = 0
|
49 | 57 | for task_type in task_types:
|
50 | 58 | if directories[dir].get(task_type) == "done":
|
|
54 | 62 | html_content += '<td style="text-align: center;background-color: lightblue;">1</td>'
|
55 | 63 | total_count += 1
|
56 | 64 | else:
|
57 |
| - html_content += "<td>0</td>" |
| 65 | + html_content += '<td style="text-align: center;">0</td>' |
| 66 | + html_content += '<td style="text-align: center;">0</td>' |
58 | 67 | html_content += '<td style="text-align: center;">0</td>'
|
59 | 68 | html_content += '<td style="text-align: center;">0</td>'
|
60 | 69 | html_content += '<td style="text-align: center;">0</td>'
|
|
0 commit comments