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 |
可以用逆元,注意上面楼主说的处理不可逆时用变换取模。另外模运算貌似比减法运算优先。base-1 %mod!=0 --》wrong answer (base-1 )%mod!=0 --》accepted Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator