This documentation is automatically generated by online-judge-tools/verification-helper
#define PROBLEM "https://yukicoder.me/problems/no/1421"
#include "my_template.hpp"
#include "other/io.hpp"
#include "linalg/bitset/solve_linear.hpp"
using BS = Bit_Array;
const int K = 30;
void solve() {
LL(N, M);
vc<BS> A(M, BS(N));
vc<BS> rhs(K, BS(M));
FOR(i, M) {
INT(n);
FOR(n) {
INT(j);
--j;
A[i][j] = 1;
}
INT(Y);
FOR(k, K) { rhs[k][i] = Y >> k & 1; }
}
vc<int> ANS(N);
FOR(k, K) {
auto b = rhs[k];
auto x = solve_linear(M, N, A, b);
if (x.empty()) return print(-1);
FOR(i, N) if (x[0][i]) ANS[i] |= 1 << k;
}
for (auto&& x: ANS) print(x);
}
signed main() {
solve();
return 0;
}Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/cplusplus.py", line 187, in bundle
bundler.update(path)
File "/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 401, in update
self.update(self._resolve(pathlib.Path(included), included_from=path))
File "/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 401, in update
self.update(self._resolve(pathlib.Path(included), included_from=path))
File "/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 401, in update
self.update(self._resolve(pathlib.Path(included), included_from=path))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 260, in _resolve
raise BundleErrorAt(path, -1, "no such header")
onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt: other/bit.hpp: line -1: no such header