Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atcoder/ac-library
/ mapping
Function
mapping
test/example/lazyseg_practice1.cpp:23–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
S e() { return S{0, 0}; }
22
23
S mapping(F l, S r) { return S{r.a * l.a + r.size * l.b, r.size}; }
24
25
F composition(F l, F r) { return F{r.a * l.a, r.b * l.a + l.b}; }
26
Callers
2
apply
Method · 0.50
all_apply
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected