题目列表

{{ problem.id }}. {{ problem.title }}

{{ problem.description.substring(0, 100) }}...

难度: {{ problem.difficulty }} 时间限制: {{ problem.time_limit }}ms 内存限制: {{ problem.memory_limit }}MB

{{ selectedProblem.id }}. {{ selectedProblem.title }}

题目描述

{{ selectedProblem.description }}

输入格式

{{ selectedProblem.input_format }}

输出格式

{{ selectedProblem.output_format }}

样例输入

{{ selectedProblem.sample_input }}

样例输出

{{ selectedProblem.sample_output }}

提交代码

请先登录后再提交代码

提交结果

{{ getStatusText(lastSubmission.status) }}
状态
{{ lastSubmission.score || 0 }}
得分
{{ lastSubmission.time_used || 0 }}ms
用时
{{ Math.round((lastSubmission.memory_used || 0) / 1024) }}KB
内存

{{ lastSubmission.error_message }}

测试用例详情

测试用例 {{ detail.testCase }}

{{ getStatusText(detail.status) }}
输入:
{{ detail.input || '(空)' }}
期望输出:
{{ detail.expectedOutput }}
实际输出:
{{ detail.actualOutput || '(空)' }}
用时: {{ detail.executionTime }}ms 内存: {{ Math.round(detail.memoryUsed / 1024) }}KB

登录

注册