/* Author: Yiu Yu Ho Just simplify the circuit as described in the problem statement The addEdge and remove methods below makes the job easier. */ import java.util.*; import java.io.*; import java.text.*; public class circuits { public static DecimalFormat fmt=new DecimalFormat("0.000"); public final double tol = 1e-12; public Scanner in = new Scanner(System.in); public PrintStream out = System.out; public double[][] G; public boolean[][] R; public int[] deg; public void main() { int i,j,k,x,y; double r; boolean done; int n; n = in.nextInt(); while(n>0) { G=new double[26][26]; R=new boolean[26][26]; deg=new int[26]; for(i=0;i