/* * ===================================================================================== * * Filename: 11854.cpp * * Description: Problem 11854 - Egypt * * Version: 1.0 * Created: 11/09/2011 07:33:48 PM * Revision: none * Compiler: g++ * * Author: Andrew Stewart * Company: * * ===================================================================================== */ #include <iostream> using namespace std; int main() { int x,y,z; while (cin >> x>> y >> z && (x)) { int X=x*x,Y=y*y,Z=z*z; if (X+Y==Z || X+Z==Y || Y+Z==X) { cout << "right" << endl; } else cout << "wrong" << endl; } }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