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

这个好方法

Posted by 201041843228 at 2014-08-23 17:35:59 on Problem 2551
其实就是验证 (n%t*10+1)%t 的结果和 (n*10+1)%t 的结果是否一致,n不一定是111..1,经验证,真的是一样的,代码附后,在简化就是 (n%t*10)%t 和 (n*10)%t 的结果一样

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