package vernam; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Random; public class Main { static Random R; public static byte xor(byte a,byte b) { return (byte) (a ^ b); } public static int maxof(int a[]) { int result=0,N=a.length; for (int i=0;iresult) result = a[i]; } return result; } public static int minof(int a[]) { int result=0,N=a.length; for (int i=0;i