摘要:
A colored stripe is represented by a horizontal row ofnsquare cells, each cell is pained one ofkcolors. Your task is to repaint the minimum number of ... 阅读全文
摘要:
/*大意:给出m给不认识关系,要把他们分成两组,每组人都要认识用一个col来记录是否相邻,如果出现奇数环会使得col[v] != 3 - color,不能省如果不存在边,特判,分一个人过去*/#include #include #include #include using namespace st... 阅读全文
摘要:
Young theoretical computer scientist wyh2000 is teaching young pupils some basic concepts about strings.A subsequence of a stringsis a string that can... 阅读全文
摘要:
Vasya has a very beautiful country garden that can be represented as ann × mrectangular field divided inton·msquares. One beautiful day Vasya remember... 阅读全文