Desafio para um bom programador de Java (m/f) - Lisboa public class Main { public static int N = ((1 << 16) | (1 << 5)); public static void main(String param[]) { int T[] = new int[N]; int x[] = new int[N]; int y[] = new int[N]; int i, j, rn, m; long count; rn = 1; count = 0; for (i = 0; i < N; i++) x[i] = T[i] = i; for (i = 0; i < N - 1; i++) { rn = ((rn * 69069) & 0xFFFF) + 1; j = rn % (N - i) + i; m = T[i]; T[i] = T[j]; T[j] = m; } do { for (i = 0; i < N; i++) y[T[i]] = x[i]; for (i = 1; i < N && y[i - 1] < y[i]; i++) ; for (j = 0; j < N; j++) x[j] = y[j]; count++; } while (i < N); count ^= 0x06AA0AAC97AC17C97L; System.out.print("mail your cv to: "); for (i = 0; i < 64; i += 8) System.out.print("" + (char) ((count >>> i) & 0xFFL)); System.out.println("@grupopie.com"); } }