Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

这题的答案是phi(9L/gcd(L,8))的因子,所以不会超的,初始化只是为了判断是否存在解..

Posted by majia5 at 2008-10-08 12:36:59 on Problem 3696
In Reply To:Re:unsigned __int64 ans;ans=(~0);这样就可以了 Posted by:sevennights at 2008-10-08 10:47:27
if(ans==(~0))//无解
else cout<<ans<<endl;//有解输出.
ans=(~0)是为了取小的
G++下面用long long 就WA,__int64就AC,不明白为什么。。。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator