{"id":15101482,"url":"https://github.com/greentiger0789/atcoder_ruby","last_synced_at":"2026-02-08T02:07:16.602Z","repository":{"id":219487159,"uuid":"749172892","full_name":"greentiger0789/AtCoder_ruby","owner":"greentiger0789","description":"This is a tool to set up an environment to solve past questions of AtCoder, a competitive programming competition, using Ruby.","archived":false,"fork":false,"pushed_at":"2024-02-10T20:04:49.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T10:43:55.046Z","etag":null,"topics":["atcoder","rspec","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greentiger0789.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-27T19:35:34.000Z","updated_at":"2024-02-03T23:44:57.000Z","dependencies_parsed_at":"2024-02-10T21:21:08.234Z","dependency_job_id":null,"html_url":"https://github.com/greentiger0789/AtCoder_ruby","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"8efc47ac68d35995123661b5072d9c067cbc7397"},"previous_names":["greentiger0789/atcoder_ruby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/greentiger0789/AtCoder_ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentiger0789%2FAtCoder_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentiger0789%2FAtCoder_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentiger0789%2FAtCoder_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentiger0789%2FAtCoder_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greentiger0789","download_url":"https://codeload.github.com/greentiger0789/AtCoder_ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greentiger0789%2FAtCoder_ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267833410,"owners_count":24151608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atcoder","rspec","ruby"],"created_at":"2024-09-25T18:23:52.078Z","updated_at":"2026-02-08T02:07:16.556Z","avatar_url":"https://github.com/greentiger0789.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AtCoder_ruby\n\n競技プログラミングの [AtCoder](https://atcoder.jp/) の過去問を Ruby で解く環境を整えるためのツールです．\n\n## Features\n\n以下の機能を含みます．\n\n- 回答入力用のファイル作成\n- 問題ページから入出力例の取得\n- 入出力例を使ったテストを行うための spec のファイル作成\n- 入出力例を用いたテストの実行\n\n## Requirement\n\nRuby のバージョン\n\n- Ruby 3.3.0\n\nGem\n\n- nokogiri\n- prime\n- rspec\n\n## Installation\n\nHomebrew で rbenv，ruby などをインストールしておく．\n\n必要な gem をインストール．\n\n```bash\ngem install nokogiri prime rspec\n```\n\n本リポジトリの clone．\n\n```bash\ngit clone https://github.com/greentiger0789/AtCoder_ruby.git\n```\n\n## Usage\n\n例：`https://atcoder.jp/contests/abc042/tasks/abc042_b`の場合\n\n本リポジトリに移動．\n\n```bash\ncd AtCoder_ruby\n```\n\n問題 URL の最後の文字列「abc042_b」を用いて，以下のコマンドを実行．\n\n```bash\nruby script/build_problem_env.rb -p abc042_b\n```\n\n`./src/abc042_b`を開き，問題を解く（main 関数内に解答を記述）．\n\n以下のコマンドでテストを実行．\n\n```bash\nruby script/check_cases.rb -p abc042_b\n```\n\nRSpec で正誤判定が行われる．\n\n## Note\n\n- 実行環境は macOS です．\n- テストが上手くいったら，提出ページに`./src/abc042_b`内のコードを丸々コピペして，提出ボタンを押すだけです．\n- 問題の入出力例をスクレイピングで取得しているので，常識の範囲内の頻度で実行しましょう．\n- template.rb に記述しているいくつかの関数は[こちらの記事](https://qiita.com/getty104/items/79c83daf653b7dc65c2f)を参考にさせていただきました．\n\n## Author\n\n- [@greentiger0789](https://github.com/greentiger0789)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreentiger0789%2Fatcoder_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreentiger0789%2Fatcoder_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreentiger0789%2Fatcoder_ruby/lists"}