Skip to content
CP4CPP logo
CP4CPP/FUN
App settings
Installation and offline settings

Preparing update checks...

Workspaces

12

Reading record

Reading statistics
Reading progress
-
Words
-
Reading estimate
-
Preset chosen
-
Code blocks
-
Images and diagrams
-
Preferences and widgets

    Shared across workspaces

    Heading markersPercentage markers

    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 function preview

    Z/Pi conversion preview

    Z Pi conversion preview

    Problem-specific template preview

    Problem-specific template preview

    General-purpose template preview

    General-purpose template preview
    • 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.
    ProjectMeaningTimeForm
    FUNCFast and Useful Notes for CompetitionsSep 2021Discord
    SPOGSPyofgame's Personal Optimization GuidebookJan 2020Markdown
    TEMPTemplated Efficient Math PreparationsJun 2022LaTeX / Overleaf
    ShortProjectUse
    BITHACKBit Twiddling HacksKnown bit manipulation techniques and integer tricks.

    Leaf-like learning: users visit niche branches as specific leaves that depend on core knowledge.

    • Good ideas are hard to rediscover without strong indexing.
    • Small tricks often lack a standard name, so curated naming matters.
    • 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.
    • Every trick should state its context, constraints, failure cases, and safer alternatives.
    • Templates should stay minimal and readable.
    • fun should link back to doc for the full theory and cpp for language details.

    Reader layout

    Col / Left

    Left column

    LEFT
    Width
    Rail
    ...
    CENTER
    Width
    Rail
    ...
    RIGHT
    Width
    Rail
    ...
    TOP
    NAV
    MID
    BOT

    Theme settings

    Preset 0 · Default · Locked

    Advanced colors · OKLCH

    Choose preset 1-9 to edit. Changes save on this device. Each color inherits in this order: cell → row → column → app → base theme.

    Editing All

    Selected scope

    Chroma 0 is neutral gray. Displayable colors depend on your screen; the browser maps colors outside its gamut. Grayscale also affects images and charts.

    Progress appearance

    Loading controls…

    Forest0.88 kB
    Slate0.88 kB

    Font settings

    Preset 0 · Default · Locked

    Font typography
    Advanced typography

    Auto uses the selected spacing mode. Variants and available weights depend on the font. The browser may synthesize missing weights or styles.

    a b c d e f g h i j k l m n o p q r s t u v w x y z

    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

    0 1 2 3 4 5 6 7 8 9

    ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~

    abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

    Iosevka Extended10.76 MB
    Inter297.90 kB
    Source Sans 3197.90 kB
    Lora138.11 kB
    Source Serif 4216.02 kB
    JetBrains Mono130.64 kB
    Fira Code53.67 kB

    Keybinds

    Choose a binding, press up to 4 keys together, then release to save. Modifiers count as keys. Esc clears the selected binding. Unsupported keys show Unknown.

    Reader

    Forbidden key combinations

    Windows / Linux reference. These combinations are reserved by this app to avoid browser, system and editing conflicts. Some are intercepted before a page can receive them. Browser extensions and other operating systems may reserve additional keys.

    Fixed navigation: Ctrl + K opens Search. Alt + F6-F9 selects a row; Alt + F10-F12 selects a column. Combine both to select a cell. While selected, F1 captures a screenshot and F2 downloads PNG. Esc cancels dialogs and navigation when a binding is not being recorded.