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 qq46475692 at 2011-05-18 08:54:05 on Problem 3338
		while(cuts--){
			scanf("%d %d %d %d",&x01,&y01,&x02,&y02);
			//gonna cut
			if(x01>x02){
				x01=x01^x02;
				x02=x01^x02;
				x01=x01^x02;
			}
			if(y01>y02){
				y01=y01^y02;
				y02=y01^y02;
				y01=y01^y02;
			}
			for(i=x01;i<x02;i++){
				for(j=y01;j<y02;j++){
					map[j][i]|=1<<cuts;
				}
			}
		}

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