This documentation is automatically generated by online-judge-tools/verification-helper
package library.other;
import java.util.Arrays;
import java.util.function.LongBinaryOperator;
/**
* C++のstd::inclusive_scanに相当するクラス
* @see <a href="https://cpprefjp.github.io/reference/numeric/inclusive_scan.html">std::inclusive_scan</a>
*/
public class InclusiveScan {
protected final int n;
protected long[] s;
/**
* コンストラクタ
* PrefixSumの方で使う
* @param n
*/
protected InclusiveScan(final int n) {
this.n = n;
s = new long[n + 1];
}
/**
* コンストラクタ
* @param a
* @param op 二項演算
*/
public InclusiveScan(final int[] a, final LongBinaryOperator op) {
n = a.length;
s = Arrays.stream(a).asLongStream().toArray();
Arrays.parallelPrefix(s, op);
}
/**
* コンストラクタ
* @param a
* @param op 二項演算
*/
public InclusiveScan(final long[] a, final LongBinaryOperator op) {
n = a.length;
s = a.clone();
Arrays.parallelPrefix(s, op);
}
/**
* @return 二項演算した後の配列
*/
public final long[] get(){ return s; }
}
Traceback (most recent call last):
File "/home/runner/.local/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 "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/languages/user_defined.py", line 68, in bundle
raise RuntimeError('bundler is not specified: {}'.format(str(path)))
RuntimeError: bundler is not specified: Java/library/other/InclusiveScan.java