fuck you all

This commit is contained in:
2025-08-12 12:47:35 +02:00
parent d342f888a9
commit 5fe140c4f9
12 changed files with 239 additions and 58 deletions

View File

@@ -61,8 +61,10 @@
<section class="problems-list">
<h2>Problems</h2>
<ul>
{% for problem in problems %}
<li><a href="/problem/{{ problem.id }}">{{ problem.title }}</a></li>
{% for folder, description, test_code in problems %}
<li>
<a href="/problem/{{ folder }}"><b>{{ folder.replace('_', ' ').title() }}</b></a>
</li>
{% else %}
<li>No problems yet.</li>
{% endfor %}

View File

@@ -12,7 +12,7 @@
<button class="back-btn" onclick="window.location.href='/'">← Back</button>
<h1 style="margin-bottom:0;">{{ problem.title }}</h1>
</div>
<div class="problem-desc">{{ problem.description }}</div>
<div class="problem-desc">{{ problem.description | safe | markdown }}</div>
<div class="editor-section" style="max-width:1160;margin:0">
<h2 style="margin-top:0;">Submit Your Solution (Python)</h2>
<form method="post">
@@ -58,15 +58,9 @@
<pre>{{ result.output }}</pre>
{% if result.error %}
<b>Error:</b>
<pre style="color:red;">{{ result.error }}</pre>
{% endif %}
{% if result.passed %}
<p style="color:green;">Passed!</p>
{% else %}
<p style="color:red;">Failed!</p>
<pre>{{ result.error }}</pre>
{% endif %}
</div>
{% endif %}
<!--<a href="/">Back to Problems</a>-->
</body>
</html>