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 xuhaoran510 at 2011-06-11 10:52:01 on Problem 3902
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:
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