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 |
问题:给出一个整数N ,0<=N<=10000,N既不是2的倍数又不是5的倍数.In Reply To:根据这句话"Given any integer 0 <= n <= 10000 not divisible by 2 or 5",1是符合题意的吧??? Posted by:LoyaltyJi at 2005-12-26 13:52:00 求一整数S,S既是N的倍数,且S的每一位都是1,输出S的位数。 有用的数论: (a+b)mod c=(a mod c + b mod c)mod c (a*b)mod c=(a mod c * b mod c)mod c Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator