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 |
分类讨论题,代码很短,但各种恶心……rt 特判和分类情况如下: n=1特判 n=2且m mod 2=0特判 k=1且m mod n=0特判 k mod n=0特判 m<=k特判 m mod n=0特判 (((m-1) mod k+1) mod n=0) and (k mod n=1)特判 答案是n的倍数也要特判…… Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator