MCPcopy Create free account
hub / github.com/Tatamo/atcoder-cli / task

Method task

src/atcoder.ts:170–176  ·  view source on GitHub ↗

* 単一の問題を取得 * @param contest_id * @param task_id * @throws Error

(contest_id: string, task_id: string)

Source from the content-addressed store, hash-verified

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}

Callers 3

taskFunction · 0.80
submitFunction · 0.80
atcoder.tsFile · 0.80

Calls 1

tasksMethod · 0.95

Tested by

no test coverage detected