//package BGms.queens; import java.awt.*; import io.Stdio; public class perm { private int[] tab; private int cur=0, XX, tot=0; public static void main(String[] argv) { long ms= System.currentTimeMillis(); he(argv); long me= System.currentTimeMillis(); System.out.println("Took: "+((me-ms)/1000.0)); } public static void he(String[] argv) { int x; try{ x= Integer.parseInt(argv[0]); } catch(NumberFormatException ee) { x=4;} if (x==0) x=4; perm q= new perm(x); } public perm(int x) { XX=x; tab= new int[XX]; for (int i=0; i0) { if (c<10) io.Stdio.prompt(" "); io.Stdio.prompt(c); io.Stdio.prompt(" : ["); } else { io.Stdio.prompt(" -["); } for (int k=0; k