:heavy_check_mark: examples/java/Aplusb_main.java

Depends on

Required by

Verified with

Code

// competitive-verifier: STANDALONE
package examples.java;
import java.util.Random;
import examples.java.Aplusb;

public class Aplusb_main {
    public static void main(String[] args) {
        Random rnd = new Random();
        for (int i = 0; i < 100000; i++)
        {
            int a = rnd.nextInt(1000000);
            int b = rnd.nextInt(1000000);

            if (Aplusb.plus(a, b) != a + b)
                throw new RuntimeException();
        }
    }
}
Back to top page