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

问题:给出一个整数N ,0<=N<=10000,N既不是2的倍数又不是5的倍数.

Posted by wrong123 at 2005-12-26 14:08:34 on Problem 2551
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:
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