All Projects → universato → ac-library-rb

universato / ac-library-rb

Licence: CC0-1.0 license
a Ruby port of AtCoder Library (ACL).

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ac-library-rb

ac-library.cr
Port of ac-library implemented in Crystal Programming Language
Stars: ✭ 28 (-44%)
Mutual labels:  atcoder, atcoder-library, ac-library
CP-Badges
Support for Competitive Coding badges to add in Github readme or portfolio websites.
Stars: ✭ 78 (+56%)
Mutual labels:  atcoder
Competitive-Programming
😘Competitive Programming Source Code (OnlineJudge , ICPC , CCPC, Codeforces , Topcoder ,Google Code Jam... etc
Stars: ✭ 45 (-10%)
Mutual labels:  atcoder
Competetive programming
Contains my solutions to thousands of different CP sums and some DSA Problems(available in snippets)
Stars: ✭ 21 (-58%)
Mutual labels:  atcoder
kyopro educational 90 python
E869120さんが作成して下さっている 2021/3/30 ~ 2021/7/12 に行われた企画「競プロ典型 90 問」をPythonで書いたコードをアップロードしています。
Stars: ✭ 64 (+28%)
Mutual labels:  atcoder
ac-deck
Unofficial CLI for AtCoder users.
Stars: ✭ 29 (-42%)
Mutual labels:  atcoder
CP
Competitive Coding
Stars: ✭ 25 (-50%)
Mutual labels:  atcoder
AtCoderClans
【非公式】AtCoderがもっと楽しくなるリンク集です。有志による非公式サービス・ツール・ライブラリ・記事などをまとめています。
Stars: ✭ 74 (+48%)
Mutual labels:  atcoder
Resources
Data Structures, Algorithms, Utility Classes for Competitive Programming, Codeforces: https://codeforces.com/profile/wleung_bvg, AtCoder: https://atcoder.jp/users/wleung_bvg, DMOJ: https://dmoj.ca/user/wleung_bvg
Stars: ✭ 34 (-32%)
Mutual labels:  atcoder
harwest-tool
A one-shot tool to harvest submissions from different OJs onto one single VCS managed repository http://bit.ly/harwest
Stars: ✭ 89 (+78%)
Mutual labels:  atcoder
Coding-Problems
💻 Solutions to coding problems from popular platforms in multiple programming languages.
Stars: ✭ 51 (+2%)
Mutual labels:  atcoder
category-wise-problems
contains category wise problems(data structures, competitive) of popular platforms.
Stars: ✭ 32 (-36%)
Mutual labels:  atcoder
100DaysCodingChallenege
This is 100 days of competitive coding challenege . You have details of all the problem and solution that I will be solving daily for 100 days consecutively . I have added link to all the questions in read me according to days , you can try solving on your own before watching solution .
Stars: ✭ 29 (-42%)
Mutual labels:  atcoder
Code
Macesuted's Code Repository.
Stars: ✭ 20 (-60%)
Mutual labels:  atcoder
cppdump
Standard dumps of data structures/algorithms
Stars: ✭ 18 (-64%)
Mutual labels:  atcoder
at coder friends
AtCoder support tools
Stars: ✭ 13 (-74%)
Mutual labels:  atcoder
icie
Competitive programming IDE-as-a-VS-Code-plugin
Stars: ✭ 81 (+62%)
Mutual labels:  atcoder
AtCoder
atcoder.jp/user/saikat
Stars: ✭ 24 (-52%)
Mutual labels:  atcoder

Other language Japanese version

README 日本語バージョン(ver. Japanese)


ac-library-rb

Gem Version

ac-library-rb is a ruby port of AtCoder Library (ACL).

See below for ACL.

Ruby version

Currently, the Ruby version in AtCoder is 2.7.1.

Therefore, 2.7.1 is recommended and may not work with other versions.

Document

Please read index.md.

How to use ac-library-rb as a Gem

We will show you how to use ac-library-rb as a gem.

How to install

This is not limited to ac-library-rb, but I will show you how to install the two common types of gem.

  • By gem command, gem install ac-library-rb.
  • By using the gem bundler's commands.

By gem command, gem install ac-library-rb

Execute gem install ac-library-rb by using the gem command included in Ruby itself.

How to use the gem bundler

If you have not installed bundler, type gem install bundler to install it.

Next, place Gemfile under the directory where you want to use ac-library-rb.

In this Gemfile, write:

gem "ac-library-rb".

Then, install ac-library-rb by using the command budnle install.

At this point, we need to run the Ruby file through bundler, so we use the command bundle exec.

$ bundle exec ruby sample.rb.

How to write in Ruby files (after installation)

Bulk loading

To enable the ac-library-rb library to be used in bulk on Ruby files, write as follows.

require "ac-library-rb/all"

dsu = AcLibraryRb::DSU.new

include AcLibraryRb
dsu = DSU.new

Individual loading

If you want to install only a specific library, specify the library name after ac-library-rb/ as shown below.

require "ac-library-rb/dsu"
dsu = AcLibraryRb::DSU.new

require "ac-library-rb/priority_queue"
pq = AcLibraryRb::PriorityQueue.new

Note that the gem names are separated by hyphens, but the library names in ac-library-rb are separated by underscores. In general, underscores are recommended for Ruby library names. However, the repository names in the original ACL are separated by a hyphen, ac-library, so ac-library-rb is also separated by a hyphen.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

$ rake test
$ rake
$ ruby test/fenwick_tree_test.rb

Other

Other languages's ac-library

Other language Japanese version

README 日本語バージョン(ver. Japanese)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].