@@ -0,0 +1,1211 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner stdin = new Scanner(System.in);%0A        int T = stdin.nextInt();%0A        for (int i = 0; i %3C T; ++i) %7B%0A            int start = stdin.nextInt();%0A            int end = stdin.nextInt();%0A            int%5B%5D values = new int%5B10%5D;%0A            for (int j = 0; j %3C 10; ++j) %7B%0A                values%5Bj%5D = stdin.nextInt();%0A            %7D%0A            for (int seed = start; seed %3C= end; ++seed) %7B%0A                Random rand = new Random(seed);%0A                boolean flag = true;%0A                for (int j = 0; j %3C 10; ++j) %7B%0A                    if (rand.nextInt(1000) != values%5Bj%5D) %7B%0A                        flag = false;%0A                        break;%0A                    %7D%0A                %7D%0A                if (flag) %7B%0A                    System.out.print(seed + %22 %22);%0A                    for (int j = 0; j %3C 10; ++j) %7B%0A                        System.out.print(rand.nextInt(1000) + %22 %22);%0A                    %7D%0A                    System.out.println();%0A                    break;%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D

add prng-sequence-guessing