Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:我的c 程序:简单In Reply To:我的c 程序:简单 Posted by:gardner at 2005-10-09 07:44:25 > #include <stdio.h> > void main() > { > unsigned long a,i; > scanf("%ld",&a); > for(i=a;;i--)if((a*a+1)%i==0)break; > printf("%ld\n",2*a+(a*a+1)/i+i); > } 果然牛X,小弟佩服! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator