MCPcopy Create free account
hub / github.com/atcoder/ac-library / composition

Function composition

test/example/lazyseg_practice1.cpp:25–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23S mapping(F l, S r) { return S{r.a * l.a + r.size * l.b, r.size}; }
24
25F composition(F l, F r) { return F{r.a * l.a, r.b * l.a + l.b}; }
26
27F id() { return F{1, 0}; }
28

Callers 1

all_applyMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected