From 399ae06c7ad0ddff3aaf55cba4b8aa93d90821e1 Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Thu, 28 Apr 2016 08:21:14 +0800 Subject: [PATCH] Create 1719_****090114.c --- QUSTOJ/1719_****090114.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 QUSTOJ/1719_****090114.c diff --git a/QUSTOJ/1719_****090114.c b/QUSTOJ/1719_****090114.c new file mode 100644 index 0000000..298f6bb --- /dev/null +++ b/QUSTOJ/1719_****090114.c @@ -0,0 +1,19 @@ +#include + +int main() +{ + int x,i,j,k; + scanf("%d",&x); + for(i=1;i<=x;++i) + { + for(j=i;j<=x;++j) + for(k=j;k<=x;++k) + { + if(i*i+j*j==k*k) + printf("%d %d %d\n",i ,j ,k); + } + } + + return 0; +} +