Test & Submit Problems
{#if problemData}
{#each problemData as problem}
{ if (!running) { savedInputs.set(activeProblem.id, {input: sampleInputText.value, output: outputText.value}); activeProblem = problem; updateTextBoxes(); } }} id={`problem_${problem.id}`} type="button" class={"tab " + (activeProblem.id == problem.id ? "active" : "")}>{problem.name}
{/each}
{/if} {#if activeProblem}
{activeProblem.name}
Sample Input (You can edit this!)
Reset Input
Output
{#if running}
{/if}
{#if !running}
Run
{:else}
Stop
{/if}
Submit
{/if}