* 単一の問題を取得 * @param contest_id * @param task_id * @throws Error
(contest_id: string, task_id: string)
| 168 | * @throws Error |
| 169 | */ |
| 170 | async task(contest_id: string, task_id: string): Promise<Task> { |
| 171 | const tasks = await this.tasks(contest_id); |
| 172 | for (const task of tasks) { |
| 173 | if (task.id === task_id) return task; |
| 174 | } |
| 175 | throw new Error(`Task ${task_id} not found.`); |
| 176 | } |
| 177 | } |
no test coverage detected