摘要: Description 在一个N N的棋盘上,有些小方格不能放骑士,棋盘上有若干骑士,任一个骑士不在其它骑士的攻击范围内,请输出最多可以放多少个骑士. 骑士攻击的点如中国象棋中的马,可以攻击8个点. Input 第一行给出N,M代表棋盘的大小及故障点的个数 下面M行,给出故障点的坐标 1 inclu 阅读全文
posted @ 2018-02-06 23:40 Wolfycz 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Descriptio 某学校要召开一个舞会,已知有N名学生,有些学生曾经互相跳过舞。当然跳过舞的一定是一个男生和一个女生,在这个舞会上,要求被邀请的学生中任一对男生和女生互相都不能跳过舞。问最多可邀请多少个学生参加. Input 第一行为N,M代表有N个学生,M是已跳过舞的学生的对数N includ 阅读全文
posted @ 2018-02-06 23:36 Wolfycz 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Description As we all know, machine scheduling is a very classical problem in computer science and has been studied for a very long history. Schedulin 阅读全文
posted @ 2018-02-06 23:31 Wolfycz 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Description 雨连续不断的击打了放牛的牧场,一个R行C列的格子(1 include include include include define inf 0x7f7f7f7f using namespace std; typedef long long ll; typedef unsign 阅读全文
posted @ 2018-02-06 14:08 Wolfycz 阅读(363) 评论(0) 推荐(0) 编辑
摘要: Description Bessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 include include include include 阅读全文
posted @ 2018-02-06 14:03 Wolfycz 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Description 给出课程的总数P(1 阅读全文
posted @ 2018-02-06 13:54 Wolfycz 阅读(201) 评论(0) 推荐(0) 编辑