import React, { useState } from "react"; import { cn } from "../../../lib/cn"; import LaTextContainer from "./LaTextContainer"; // import FullLatexRenderer from "./FullLatexRenderer"; export interface StatementData { id?: number; name?: string; tags?: string[]; timeLimit?: number; memoryLimit?: number; legend?: string; input?: string; output?: string; sampleTests?: { input: string; output: string }[]; notes?: string; } const Statement: React.FC = ({ id, name, tags, timeLimit = 1000, memoryLimit = 256 * 1024 * 1024, legend = "", input = "", output = "", sampleTests = [], notes = "", }) => { return (

{name}

Задача #{id}

{tags && tags.map((v, i) =>
{v}
)}

ограничение по времени на тест: {timeLimit / 1000} секунда

ограничение по памяти на тест: {memoryLimit / 1024 / 1024} мегабайт

ввод: стандартный ввод

вывод: стандартный вывод

Входные данные
Выходные данные
{sampleTests.length == 1 ? "Пример" : "Примеры"}
{sampleTests.map((v, i) =>
Входные данные
{v.input}
Выходные данные
{v.output}
)}
Примечание
Автор: Jacks
); }; export default Statement;