MCPcopy 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
105void 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
115int32_t main() {
116 ios_base::sync_with_stdio(0);

Callers 1

mainFunction · 0.70

Calls 2

insertMethod · 0.45
kthMethod · 0.45

Tested by

no test coverage detected