Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShahjalalShohag/code-library
/ solve
Function
solve
Math/Basis Vector.cpp:105–113 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
103
};
104
105
void solve() {
106
int q; cin >> q;
107
Basis B;
108
while (q--) {
109
int ty, k; cin >> ty >> k;
110
if (ty == 1) B.insert(k);
111
else cout << B.kth(k) <<
'\n'
;
112
}
113
}
114
115
int32_t main() {
116
ios_base::sync_with_stdio(0);
Callers
1
main
Function · 0.70
Calls
2
insert
Method · 0.45
kth
Method · 0.45
Tested by
no test coverage detected