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
北京大学《ACM/ICPC大学生程序设计竞赛训练》暑期课面向全球招生!

Re:貌似题目里定义的字典序有点问题

Posted by 519232826 at 2012-07-01 21:20:11 on Problem 3279
In Reply To:貌似题目里定义的字典序有点问题 Posted by:Felicia at 2007-12-24 21:12:17
就是有问题
官方数据:
7 8
0 0 0 0 1 0 1 0
0 0 0 0 0 0 1 0
1 0 0 0 1 0 0 1
0 1 0 1 1 0 0 1
0 0 0 1 1 0 1 1
0 0 0 1 0 0 0 0
0 1 0 0 0 0 0 0
它的答案是:
1 1 1 0 1 1 0 0
0 1 0 0 1 0 0 0
0 0 0 1 0 0 1 0
1 1 1 1 1 1 1 0
0 0 1 1 0 1 1 0
1 0 1 0 0 1 0 0
1 0 0 1 1 0 0 0

但其是如果我们理解成从左到右的话解为:
0 0 1 1 0 1 1 1 
0 1 0 0 1 0 0 0 
1 1 0 0 1 0 0 1 
1 1 1 1 1 1 1 0 
1 1 1 0 1 1 0 1 
1 0 1 0 0 1 0 0 
0 1 0 0 0 0 1 1 

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