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-1|x+y当且仅当n-1|nx+yn-1|x+y <=> n-1|(n-1)x+(x+y) <=> n-1|nx+y 所以所有的基数n都可以扔掉,题目就等价于n-1是否可以整除各位数之和 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator