fun - Tricks Tips Templates
cp4.vn/fun collects tricks, tips, templates, small transforms, and contest shortcuts.
It is useful when a learner already understands the core topic and wants the small idea that saves time, avoids a trap, or makes an implementation cleaner.
Z function preview

Z/Pi conversion preview

Problem-specific template preview

General-purpose template preview

Purpose
Section titled “Purpose”- Collect clever observations, contest hacks, micro-optimizations, and elegant implementation ideas.
- Highlight memorable transforms, one-liners, and small techniques that save time in practice.
- Keep minimal readable templates and implementations for fast contest review.
Lineage
Section titled “Lineage”| Project | Meaning | Time | Form |
|---|---|---|---|
| FUNC | Fast and Useful Notes for Competitions | Sep 2021 | Discord |
| SPOG | SPyofgame's Personal Optimization Guidebook | Jan 2020 | Markdown |
| TEMP | Templated Efficient Math Preparations | Jun 2022 | LaTeX / Overleaf |
Reference
Section titled “Reference”| Short | Project | Use |
|---|---|---|
| BITHACK | Bit Twiddling Hacks | Known bit manipulation techniques and integer tricks. |
Learning Style
Section titled “Learning Style”Leaf-like learning: users visit niche branches as specific leaves that depend on core knowledge.
Strengths To Preserve
Section titled “Strengths To Preserve”- Good ideas are hard to rediscover without strong indexing.
- Small tricks often lack a standard name, so curated naming matters.
Weaknesses To Fix
Section titled “Weaknesses To Fix”- Many sites become noisy blog piles.
- Context is often missing, so people reuse a trick in the wrong setting.
- One-liners without explanation become hard to trust.