From e97dde65fb660da659ea0e3418455f668e8711db Mon Sep 17 00:00:00 2001 From: rattatwinko Date: Thu, 14 Aug 2025 22:08:47 +0200 Subject: [PATCH] animation ; fix the displaying and calculating tmrw --- src/templates/index.html | 165 +++++++++++++++++++-------------------- 1 file changed, 79 insertions(+), 86 deletions(-) diff --git a/src/templates/index.html b/src/templates/index.html index f722b1b..b1e7943 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1,20 +1,29 @@ - - - Quick Problem Platform - - - + + +Quick Problem Platform + + +
@@ -43,7 +52,9 @@
-

Leaderboard

+

Leaderboard + ℹ️ +

@@ -57,7 +68,7 @@ - + @@ -68,15 +79,15 @@ {% for entry in leaderboard %} -
Rank ℹ️Rank User Problem Runtime (s)
{{ loop.index }} {{ entry[0] }} {{ problem_titles.get(entry[1], 'Unknown') }} @@ -94,18 +105,15 @@ - +

How Ranking Works

-

- The leaderboard uses a weighted scoring system to determine overall rank. - It considers multiple metrics for each submission: -

+

The leaderboard uses a weighted scoring system to determine overall rank:

  • Runtime: How fast the solution runs (lower is better).
  • Memory Usage: How much memory the solution uses (lower is better).
-

Each metric is normalized against the best in the leaderboard, and the overall score is calculated as:

+

Overall score is calculated as:

runtimeScore = yourRuntime / bestRuntime
@@ -113,24 +121,22 @@ overallScore = runtimeScore × 0.7 + memoryScore × 0.3
-

Lower overall scores are better. If two scores are equal, the earlier submission ranks higher.

+

Lower overall scores are better. If scores are equal, earlier submission ranks higher.

-