AtCoder: reaching blue rank with Ruby, C++ and self-made tools
The author, a competitive programmer, reached blue rank on AtCoder after a best-ever result in ABC484. They write in Ruby and C++: Ruby has a large standard library and needs no compilation, while C++ runs fast. Problems that look heavy on constant factors[1] are written in C++ from the start, and the rest in Ruby, but Ruby sometimes gets TLE[2]. In ABC484-F a Ruby solution timed out, so the author submitted it as a binary with spinel, a tool the author built support for, and it passed during the contest without code changes, though this does not always work.
NanaCL is the author's competitive programming library, with data structures and algorithms such as UnionFindMap, Dijkstra's algorithm, MinGraph and Imos, plus a command-line tool that expands dependent libraries and generates code for spinel binary submission. NanaCPP is a preset library that makes C++ usable for contests; its expansion is done in advance, so main.cpp is nearly 1500 lines. cpg (Competitive Programming CLI) replaces oj and oj-prepare[3] for the author's own use, with fixed folder layout, per-contest templates, clipboard submission, opening the current problem in a browser and a TUI list of submissions.
The author has taken part in ADT almost every day since October. As an example, ABC481-D is solved by building a weighted directed graph and running Dijkstra's algorithm, and the author's code for it is only a few lines of Ruby. The author invites readers to try 8 of their problems in a contest on 15 November 2026 at 15:00.
Sources
-
JPZenn JA
AtCoder:RubyとC++と自作ツールで入青した、あと自作ツールの紹介






