fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.math.*;
  5.  
  6. class Ideone {
  7. public static void main (String[] args) throws java.lang.Exception {
  8. BigInteger bi1, bi2, bi3;
  9. bi1 = new BigInteger("-100");
  10. bi2 = new BigInteger("3");
  11.  
  12. bi3 = bi1.mod(bi2);
  13. System.out.println(bi3);
  14. }
  15. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
2