摘要: 棋盘游戏小希和Gardon在玩一个游戏:对一个N*M的棋盘,在格子里放尽量多的一些国际象棋里面的“车”,并且使得他们不能互相攻击,这当然很简单,但是Gardon限制了只有某些格子才可以放,小希还是很轻松的解决了这个问题(见下图)注意不能放车的地方不影响车的互相攻击。所... 阅读全文
posted @ 2017-11-22 11:16 _大美 阅读(156) 评论(0) 推荐(0) 编辑
摘要: A Bug's Life Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 17246 Accepte... 阅读全文
posted @ 2017-11-22 10:56 _大美 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Courses Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determin... 阅读全文
posted @ 2017-11-22 10:50 _大美 阅读(138) 评论(0) 推荐(0) 编辑
摘要: The Accomodation of StudentsThere are a group of students. Some of them may know each other, while others don't. For example, A and B ... 阅读全文
posted @ 2017-11-22 10:45 _大美 阅读(113) 评论(0) 推荐(0) 编辑