-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path44.c
31 lines (26 loc) · 760 Bytes
/
44.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
//int i;
long long int t,p,h;
int a,b,c;
for(a=27700;a<=100;a--)
{
t=a*(a+1)/2;
for(b=a;b>2;b--)
{
p=b*(3*b-1)/2;
if(t==p)
{
//printf("gggggg");
for(c=b;c>2;c--)
{
h=c*(2*c-1);
if(h==p) {printf("%d\t%d\t%d\n",a,b,c);exit;}
}
}
}
}
}