README にバンドル前後の具体例を載せる#107
Conversation
modint を土台に modpow と combination を重ねた 3 ファイルのライブラリ から、使った modpow (とその依存 modint) だけが残り、使っていない combination が消える例。出力はドキュメント方針の例外として実物を 貼る (ツールの顔であり、クレジットのバージョンで古さに気づけるため)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
英語版も日本語版と同じ構成。出力の実物は英語コメントのライブラリで 取り直したもの (コンパイル・実行まで確認済み)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughChangesBundling example documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
テンプレートを含むライブラリでも問題なくバンドルできることを例自体 で見せる。日英それぞれの実物出力を取り直し、コンパイル・実行まで 確認済み。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@README.md`:
- Around line 76-113: README.md のバンドル例に、生成された submission.cpp
のコンパイルコマンドと実行コマンド、および標準出力 882499718 を追加してください。README.ja.md
の対応するバンドル例にも、同じ手順と結果を日本語で追加してください。
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9d02531d-f77d-48de-a1ef-3a1c8f267554
📒 Files selected for processing (2)
README.ja.mdREADME.md
Closes #99
概要
README (日英) の NOTE とインストールの間に「バンドル例」の節を追加する。例を見て使いたくなってからインストールへ進む、という順番を意図して、インストールより前に置いた。
modint.hppを土台にmodpow.hppとcombination.hppを重ねた 3 ファイルのライブラリ。解答は 2 ファイルを include するがmodpowしか使わない。combination.hppの削除・依存するmodint.hppの維持・標準ライブラリの#include温存・#lineの意味。ModIntはテンプレートにしてある。テンプレートを含むライブラリでも問題なくバンドルできることを、例自体で示すため。submission.cppはドキュメント方針 (出力の実物を転載しない) の例外として実物を貼る。ツールの顔であることと、クレジット行のバージョンで古さに気づけることが理由。検証 (README には載せない、この PR の作業記録)
日英それぞれのコメント言語でライブラリを実際に登録・バンドルして掲載の実物を取得し、その出力が g++ でコンパイルでき、実行結果 (2^100 mod 998244353 = 882499718) が正しいことまで確認した。実行結果自体は README の例の焦点 (バンドル前後のコード変換) ではないため、README には掲載しない。
🤖 Generated with Claude Code