C
3201 3^2+0^2=2^3+1^3(97993)
main()
{
int i,a,b,c,d;
long s=0;
for( i=1000; i<=9999; i++)
printf("Result:%ld\n",s);
}
{ a=i/1000;
b=i%1000/100;
c=i%100/10;
d=i%10;
if (a*a+c*c==b*b*b+d*d*d)
s=s+i;
}
100(94111)
main()
{long x;
for( x=99999; x>10000; x-- )
{a=x/10000; b=x%10000/1000; c=x%1000/100;
d=x%100/10; e=x%10;
if( a*a+b*b+c*c+d*d+e*e==100 ) break; }
printf(“Max,%ld\n”,x); }
95129+1=5*2
,(1); (2)
,(1); (2)
,(1); (2)
153=1^3+3^3+5^3153[100999]
[10009999]
30321509
3050
main()
{
int a,b,c,i=0;
for( a=1; a<17; a++ )
for( b=1; b<25; b++ )
for( c=1; c<30; c++ )
if( a+b+c==30 && 3*a+2*b+c==50 ) i++;
printf(,Result,%d ",i);
getch ();
}
50521(106)
main()
{int i,j,k,s=0;
for( i=1; i<50; i++)
for( j=1; j<25; j++)
for( k=1; k<10; k++)
if ( i+2*j+5*k==50 )
s++;
printf ( "The num is,%d \n",s );
}
,,8,?
50521
100100,51,31,13?
631236=1+2+36[101000]524
main()
{
int x,n,s=0;
scanf(“%d”,x);
for(n=1;n<x;n++)
if(x%n==0)s+=n;
printf(“s=%d\n”,s);
}
main()
{
int x,m,sum=0,s,k;
for (x=10; x<=1000; x++)
{
if (s==x) sum+=x;
}
printf("sum=%d",sum);
}
s=0;
k=x/2+1;
for (m=1; m<k; m++)
if ( x%m==0 ) s+=m;
,61236=1+2+36 [11000]
61236=1+2+36 [1,1000]
[200,300](,)
[200,300](,)
2481234681224248[10100]
2+4+6+8+…+60
main()
{
int x,sum=0 ;
for ( x=2; x<=60; x+=2 )
sum+= x ;
printf (,sum=%d \n”,sum );
}
n50,
t = 1+1/22+1/32+…+1/n 2
()
n1501/n2
main()
{
int n;
float t=0;
for ( n=1; n<=50; n++)
t = t+1.0/(n*n) ;
printf(,t is,%.4f \n",t ) ;
}
s=2/1+3/2+4/3+…+(n+1)/n,s50(49.395)
n=1,s=2/1
n=2,s=2/1+3/2
n=3,s=2/1+3/2+4/3
……
s≥50
main()
{
int n;
float s=0,k;
for (n=1; s<=50; n++)
{ k=s;
s+=1.0*(n+1)/n ;
}
printf ( "Result,%.3f \n“,k) ;
}
y=1+2/3+3/5+4/7+…+n/(2*n -1),n=50,(26.47)
n25,s=1+1/1!+1/2!+1/3!+…+1/n!
A1=1,A2=1/(1+A1),A3=1/(1+A2),
A4=1/(1+A3),……,A50.
α/4=1-1/3+1/5-1/7+1/9-1/11+… -1/99α
8x-5y=3,|x|<=150,|y|<=200|x|*|y| (24676)
x-150150y-200200|x|*|y|
#include "math.h"
main()
{ int x,y,t,max=0;
for (x=-150; x<=150; x++)
for (y=-200; y<=200; y++)
{ if (8*x-5*y==3)
t= abs(x) * abs(y);
if (max<t)
max=t;
}
printf ("max=%d\n“,max );
}
A<B,ABA*B=716699A+B(1836)
A1716699AB=716699/Axx716700A+B
716700A+Bxxx=A+B
main()
{
long a,b,min=716700;
for(a=1; a<=716699; a++)
{
b=716699/a ;
if(a*b==716699)
if(a+b<min)
min=a+b;
}
printf("%ld\n",min);
getch();
}
x,y,zx2+y2+z2=552( x > y > z),x,y,z|x|+|y|+|z|
X,Y,ZX2+Y2+Z2=252X+Y+Z
x,y,zx2+y2+z2=552( x > y > z),x,y,z
9X-19Y=1,|X|≤100,|Y|≤50?
,32+42=525[131200]
main()
{int a,b,c,min=200;
for(a=131;a<200;a++)
{
for(b=1;b<a;b++)
for(c=b;c<a;c++)
if(c*c+b*b==a*a)
if(a<min)min=a;
}
printf("min = %d\n",min);
getch();
}
32+42=525[100200](55)
main()
{
int i,j,k,n=0;
for( k=100; k<=200; k++)
{
for( j=1; j<k; j++ )
for( i=j+1; i<k; i++ )
if ( i*i + j*j == k*k ) n++;
}
printf("n is:%d\n",n);
}
n is:77
main()
{
int i,j,k,n=0;
for( k=100; k<=200; )
{
for( j=1; j<k; j++ )
for( i=j+1; i<k; i++ )
if ( i*i + j*j == k*k )
{ n++; goto mm; }
mm,k++;
}
printf("n is:%d\n",n);
}
A^2+B^2=C^2 (A<B<C)ABC345
3^2+4^2=5^2AB25A+B+C<=100 (11)
#include<math.h>
main()
{
int a,b,c,n=0;
for( a=1; a<25; a++ )
for( b=a+1; b<25; b++ )
{
c=sqrt(a*a+b*b);
if( c*c==a*a+b*b && a+b+c<=100 )
n++;
}
printf("n=%d\n",n);
}
1/A^2+1/B^2=1/C^2 ABC1566560
1/156^2+1/65^2=1/60^2A>B>CABC100 2
1/A^2+1/B^2=1/C^2 ABC1566560
1/156^2+1/65^2=1/60^2A>B>CABC100 5
A^2+B^2=C^2 ( A<B<C)ABC3453^2+4^2=5^2ABC100
A+B+C 240
,3^2+4^2=5^25[131200] 135
a,b,c,deabcd*e=bcde (a0 e01)abcd(2)
main()
{
int i,a,b,c,d,e,k=0;
for(i=1000;i<=9999;i++)
{ a=i/1000;
b=i%1000/100;
c=i%100/10;
d=i%10;
for(e=2;e<=9;e++)
if (i*e==b*1000+c*100+d*10+e) k++;
}
printf("okThe num is:%d\n",k);
}
a,b,c,deabcd*e=bcde (a0 e01)abcd 3665
a,b,c,deabcd*e=bcde (a0 e01)abcd 1999
a,b,c,deabcd*e=bcde (a0 e01)bcde 16659
6a,b,c,d,ef,abcdf e=fdcbaabcdf(a≠0,e≠0,e≠1)
10?1534
main()
{ int n=1,day;
for( day=9; day>0; day--) n=(n+1)*2;
printf ( "Result,%d \n“,n);
}
456008%19
main()
{ int year=0;
float x=45600,y;
y=4*x;
while(1)
{ year++;
x=x*1.08;
if (x>=y) break;
}
printf ("%d \n“,year);
}
1100(25502500)
main()
{
x,sum=0;
for(x= ; x<=100; x++)
sum+=x*x*x;
printf(" sum=% \n ",sum);
}