| 276 | // A correct result carries no mark — only its median time (µs). A mark appears |
| 277 | // *only* when the result is not correct. |
| 278 | const cell = (side: any) => { |
| 279 | const r = side.res; |
| 280 | const t = r?.status === 'ok' && typeof r.timeMs === 'number' ? fmtUs(r.timeMs) : null; |
| 281 | if (side.v.v === 'correct') return t ?? '·'; |
| 282 | const note = side.v.note ? ` <sub>${side.v.note}</sub>` : ''; |
| 283 | return SYM[side.v.v] + note + (t ? ` ${t}` : ''); |
| 284 | }; |
| 285 | const CATS = [ |
| 286 | { key: 'factor', title: 'Factoring' }, { key: 'gcd', title: 'Polynomial GCD' }, |
| 287 | { key: 'expand', title: 'Expansion' }, { key: 'simplify', title: 'Simplification' }, |