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 trueshlqsh at 2007-10-10 10:52:31 on Problem 1014
       data[1]=data[1]%12;
	   if (data[2]>4) data[2]=4-data[2]%2;
	   if (data[3]>5) data[3]=4+data[3]%2;
	   if (data[4]>5) data[4]=4+data[4]%2;
	   if (data[5]>6) data[5]=6-data[5]%2;
	   if (data[6]>5) data[6]=4+data[6]%2;	

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