This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub shun0923/competitive-programming-java-library
// verification-helper: PROBLEM https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1501
package library;
import library.Solver;
import library.ArbitraryMod;
public class ArbitraryMod_combination_test extends Solver {
public static void main(final String[] args) { main(args, new ArbitraryMod_combination_test()); }
public void solve() {
Mod md = new ArbitraryMod(100_000_007);
int r = ni();
int c = ni();
int a1 = ni();
int a2 = ni();
int b1 = ni();
int b2 = ni();
int x = Math.min(Math.abs(a1 - b1), r - Math.abs(a1 - b1));
int y = Math.min(Math.abs(a2 - b2), c - Math.abs(a2 - b2));
long ans = md.C(x + y, x);
if(x * 2 == r) ans = md.mul(ans, 2);
if(y * 2 == c) ans = md.mul(ans, 2);
prtln(ans);
}
}Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/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.11.2/x64/lib/python3.11/site-packages/onlinejudge_verify/languages/user_defined.py", line 71, in bundle
return subprocess.check_output(shlex.split(command))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['false']' returned non-zero exit status 1.