Keita Morisaki

Results 5 comments of Keita Morisaki

ARC065はABC049と同日開催されたので、1問目が"C問題"から始まっています。Dropboxにも`/ARC065/C/`というパスに1問目のテストケースが格納されているのですが、URLから取得した1問目の`problem_id`は"arc065_a"となっています。 つまり"arc065_a" == "C"という関連付けをする必要があるのですが、コンテストの問題の情報はhttps://atcoder.jp/contests/arc065/standings/json のようにJSONで取得できるのでこれを使えば良さそうです。 JSONは以下のような形式になっているので `json["TaskInfo"]`のリストを走査して関連付けを見つけることができます。 ``` { "Fixed": true, "AdditionalColumns": null, "TaskInfo": [ { "Assignment": "C", "TaskName": "白昼夢 / Daydream", "TaskScreenName": "arc065_a" }, { "Assignment": "D", "TaskName": "連結...

今確認したのですが、[典型90](https://atcoder.jp/contests/typical90)のような順位表のないコンテストの場合、`../standings/json`の取得ができませんでした。。。 HTMLから`assignment`を取得する方法がいいかも知れません。 もしくは[AtCoder Problemsが提供するAPI](https://github.com/kenkoooo/AtCoderProblems/blob/master/doc/api.md)の一つのhttps://kenkoooo.com/atcoder/resources/problems.json を使う方法もあります。

Here is my temporary solution. ``` describe("test", () => { let skipOther = false test("check something", async () => { try { await checkSomething() } catch(e) { skipOther = true...

My hobby project also crawls the AtCoder webpages and the script recently started to get 403 errors saying something like "blocked by CloudFront". It looks like 70% of the requests...