Skip to content

xeno14/AtCoderProblems

 
 

Repository files navigation

AtCoder Problems

Build Status

atcoder-problems-frontend

atcoder-problems-frontend is a web application written in TypeScript.

Install required packages

yarn

Start the web application on your local

yarn start

Build optimized files for distribution

yarn build

Fix code format

yarn lint:fix

Run end-to-end test

yarn cy:run

Open Cypress Test Runner

yarn cy:open

atcoder-problems-backend

atcoder-problems-backend is a set of backend applications written in Rust.

Since the web app, which is running in your local, will connect to the production backend server, you don't need to run backend applications in most cases.

Build

cd atcoder-problems-backend/
cargo build

Run

export SQL_URL=... # URL of PostgreSQL
export CLIENT_ID=... # GitHub client_id, which is required to use login function.
export CLIENT_SECRET=... # GitHub client_secret, which is required to use login function.

# Run backend server
cargo run --bin run_server

# Run crawlers
cargo run --bin crawl_all_submissions
cargo run --bin crawl_for_virtual_contests
cargo run --bin crawl_from_new_contests
cargo run --bin crawl_problems
cargo run --bin crawl_recent_submissions
cargo run --bin crawl_whole_contest

# Run other tools
cargo run --bin batch_update
cargo run --bin delta_update
cargo run --bin dump_json
cargo run --bin fix_invalid_submissions

API

Please use API politely. Especially, please ensure using cache and adding delay if you develop a bot.

API は行儀良く利用してください。 特に bot を開発している場合は、ETag を用いたキャッシュを利用し、連続して呼び出す際はある程度 (例えば 1 秒) の遅延をはさむようにしてください。 1 日に数万回以上のリクエストをしたい場合は事前に相談してください。

ブラウザ上から JavaScript で直接利用している場合はあまり気にする必要はありません。 キャッシュはブラウザがよしなにやってくれますし、呼び出し回数もたいてい多くならないためです。 bot の場合も 1 日に 1000 回以下程度のリクエストであればたいした負荷にはならないので心配する必要はありません。

Information API

Statistics API

Submission API

Time-based Submission API

Interface

https://kenkoooo.com/atcoder/atcoder-api/v3/from/{unix_time_second}

Example

Dataset

Submissions

This will be updated once a week.

Estimated difficulties of the problems

About

Extend your AtCoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 58.0%
  • Rust 33.1%
  • Python 5.4%
  • TSQL 1.1%
  • CSS 0.8%
  • JavaScript 0.8%
  • Other 0.8%