mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1719_****090114.c
This commit is contained in:
parent
7ce1de7ae1
commit
399ae06c7a
19
QUSTOJ/1719_****090114.c
Normal file
19
QUSTOJ/1719_****090114.c
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#include<stdio.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user