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 |
这题的答案是phi(9L/gcd(L,8))的因子,所以不会超的,初始化只是为了判断是否存在解..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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator