/* Man Vo UVA 11854: Egypt 11/20/11 */ import java.util.Scanner; public class Egypt { public static void main(String[] args){ Scanner input = new Scanner(System.in); while(input.hasNextInt()){ int a = input.nextInt(); int b = input.nextInt(); int c = input.nextInt(); if(a==0 && b==0 && c ==0){ break; } a = a*a; b = b*b; c = c*c; if(a+b==c || a+c == b || b + c == a){ System.out.println("right"); }else System.out.println("wrong"); } } }The statements and opinions included in these pages are those of only. Any statements and opinions included in these pages are not those of Louisiana State University or the LSU Board of Supervisors.
© 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Isaac Traxler