File tree Expand file tree Collapse file tree 4 files changed +26
-6
lines changed
classically-verifiable-problems Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 1+ import { RuntimeSeconds } from '@/components/RuntimeSeconds' ;
12import {
23 Table ,
34 TableBody ,
@@ -86,10 +87,12 @@ export function SubmissionsTable(props: {
8687 < TableCell > { submission . value } </ TableCell >
8788 < TableCell >
8889 < div >
89- < span title = "Quantum" > Q</ span > : { submission . runtimeQuantum || '-' }
90+ < span title = "Quantum" > Q</ span > :{ ' ' }
91+ < RuntimeSeconds value = { submission . runtimeQuantum } />
9092 </ div >
9193 < div >
92- < span title = "Classical" > C</ span > : { submission . runtimeClassical || '-' }
94+ < span title = "Classical" > C</ span > :{ ' ' }
95+ < RuntimeSeconds value = { submission . runtimeClassical } />
9396 </ div >
9497 </ TableCell >
9598 < TableCell className = "whitespace-normal" >
Original file line number Diff line number Diff line change 1+ import { RuntimeSeconds } from '@/components/RuntimeSeconds' ;
12import {
23 Table ,
34 TableBody ,
@@ -95,10 +96,12 @@ export function SubmissionsTable(props: {
9596 </ TableCell >
9697 < TableCell >
9798 < div >
98- < span title = "Quantum" > Q</ span > : { submission . runtimeQuantum || '-' }
99+ < span title = "Quantum" > Q</ span > :{ ' ' }
100+ < RuntimeSeconds value = { submission . runtimeQuantum } />
99101 </ div >
100102 < div >
101- < span title = "Classical" > C</ span > : { submission . runtimeClassical || '-' }
103+ < span title = "Classical" > C</ span > :{ ' ' }
104+ < RuntimeSeconds value = { submission . runtimeClassical } />
102105 </ div >
103106 </ TableCell >
104107 < TableCell className = "whitespace-normal" >
Original file line number Diff line number Diff line change 1+ import { RuntimeSeconds } from '@/components/RuntimeSeconds' ;
12import {
23 Table ,
34 TableBody ,
@@ -95,10 +96,12 @@ export function SubmissionsTable(props: {
9596 </ TableCell >
9697 < TableCell >
9798 < div >
98- < span title = "Quantum" > Q</ span > : { submission . runtimeQuantum || '-' }
99+ < span title = "Quantum" > Q</ span > :{ ' ' }
100+ < RuntimeSeconds value = { submission . runtimeQuantum } />
99101 </ div >
100102 < div >
101- < span title = "Classical" > C</ span > : { submission . runtimeClassical || '-' }
103+ < span title = "Classical" > C</ span > :{ ' ' }
104+ < RuntimeSeconds value = { submission . runtimeClassical } />
102105 </ div >
103106 </ TableCell >
104107 < TableCell className = "whitespace-normal" >
Original file line number Diff line number Diff line change 1+ export function RuntimeSeconds ( props : { value : number | undefined } ) {
2+ const { value } = props ;
3+
4+ if ( value === undefined ) return '-' ;
5+
6+ if ( Math . abs ( value ) >= 1e7 ) {
7+ return value . toExponential ( ) ;
8+ }
9+
10+ return value ;
11+ }
You can’t perform that action at this time.
0 commit comments