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 |
纯粹是数学题目高了高中的数学公式!#include <stdio.h> int main() { __int64 a,m,n; scanf("%I64d",&a); for(m=a;m>=1;m--) if((a*a+1)%m==0) break; n=(a*a+1)/m; printf("%I64d\n",2*a+m+n); return 1; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator