{#if problem.submissions.length == 0}
{problem.problem.friendlyName}
{:else}
{problem.problem.friendlyName}
{problem.submissions.length} {pluralize(problem.submissions.length, 'attempt', 'attempts')}
{#if problem.submissions.filter((s) => s.state === 'Processing').length > 0}
({problem.submissions.filter((s) => s.state === 'Processing').length} pending...)
{/if} {#if problem.overallState === 'Correct'}
@ {getContestOffsetDisplay( problem.submissions.filter((s) => s.state === 'Correct')[0] )}
{/if} {/if}
{#if problem.overallState !== 'Correct'} {#each sortedSubmissions as submission, i}
Submit #{i + 1}:
{submission.state}
@ {getContestOffsetDisplay(submission)}
{#if submission.message}
Judge:
{submission.message}
{/if} {/each} {/if}