Monday, September 03, 2007

One Line Algorithm

See around web pages regarding high school lever mathmatics.

Here is my source code, of source, squeezed.


int a,p,q,r;
main(){
for(;a>1?0==a%5?(a=a/5,++p):0==a%3?(a=a/3,++q):(a=a/2,++r):scanf("%d",&a);a-1||(printf("p, q, r = %d %d %d\n", p, q, r),p=q=r=a=0));
}


Does anyone find out at first glance?? That is famous fomula. I'll explain it next blog post.

Ummm, it look encrypted...

0 Comments:

Post a Comment

<< Home